MVC app redirecting to domain name - asp.net-mvc

I have inherited an MVC app which seems to not want to start properly.
When I run the app it initially goes to http://localhost:63744 but then immediately 301 redirects to http://www.thecompanydomainname.com.
I can't seem to find what is causing the redirect I have looked in the home controller and it seems to have an index action but before it gets there the redirect is happening. I should also mention that this mvc site is partly using Umbraco.
I realise that this is impossible to diagnose without having access to the project but I just wondered if anyone have any ideas as to why this might be redirecting and where I should look for the redirecting code?
Many thanks,
Kiran

I was being stupid. The browser had cached the first 301 (perm redirect) and from that point on simply redirected the request before it got to the application.
I solved (in chrome) this by going to chrome://net-internals. On the right of the top red status bar, click on the down arrow ▼ to open the drop-down menu, and under the "Tools" group, choose "Clear cache".

Related

URL Redirection Issue in DNN

In my local environment of a particular site, when i click on a particular link ,it redirects to the same page but in the url it shows that the page has been visited.Again when i click on the link, it will direct me to that page. Any reason as to why this happens and what could be the possible solution.
For example: My sites name is abc.com. It has pages like help, contact etc. When i am on my homepage and click on help it redirects me back to my home page but in my browser the URL is shown as abc.com/help.
When i click on help again , it redirects me to the help page(URL in browser is abc/help/Help) on the second click.
This can happen if the cache or system index has been corrupted. The best solution is to typically stop & start the application and see if it comes back.
If it is still an issue and you are on an older version of DNN, make sure that the PortalAlias table doesn't have a trailing / on your portal alias.
If this isn't the case, it is possible that a custom URL impacted this, but doubtful.

Get Make Home Page checkbox back for page content item in Orchard CMS

I am working on learning Orchard. I have got my development machine in a state where it will not load the home page. I get a 404 error with this message...
Server Error in '/OrchardLocal' Application 404
I realized that it is because no content item is set as the home page. However, the checkbox for making a page (or anything else) the home page is not showing in the edit page screen.
How do I fix this? I need the Make this a Home page checkbox back or some other way to accomplish the same thing.
Is there a way to do this in the database directly (which I realize is a hack but might let me move the ball forward on the problem).
I thought I would mention the EXACT exception thrown by the error is "The controller for path '/OrchardLocal/' was not found or does not implement IController."
Any help is appreciated. If I can't figure this out it seems I will be back to doing Orchard from scratch (new pull, new db etc) which seems to happen EVERY time I try to learn Orchard.
Here are the Parts I have on the Page Content Type. This is probably not the default list because I have been messing with it to get it fixed.
Common
Publish Later
Title
Autoroute
Body
Containable
Navigation
Identity
Menu
For the record I added the blog Module to the site and added a blog. But same behavior when I create a blog...no Make this the Home page and no way to set the permalink.
Do you have the AutoRoute Part attached to the Page Content type.
Check to make sure that your User has the permissions to set a content item as the homepage
To set an item as a homepage just set its permalink to an empty string.

Umbraco multiple sites same node name throws 404

I have an umbraco installation that has two sites in it both with a page called Contact Us in the root. I have configured their domain names so in development I have site1.local and site2.local
if I go to site1.local/contact-us/ the page works fine but then if I try to go to second sites contact us page (site2.local/contact-us/) it just redirects me to the first sites 404 page.
Has anyone come across this problem or know how to fix it?
Check you have set up a template and assigned it to the page as you get redirected to the main 404 if no template is set. If so

File not found hashtag problem

My JQM app has a page in it called "settings" which has three buttons serving as links to other pages. One of those pages is called "tracks" and the code for it is below.
Control your relaxation resources
When I click this button I get a "File not found" error and the browser is pointing to the "file:///C:/inetpub/wwwroot/SITES/jQuery%20Mobile%20Form/tracks#tracks" url rather than the "file:///C:/inetpub/wwwroot/SITES/jQuery%20Mobile%20Form/index.html#tracks" url. I'm using FF but it happens in all browsers and it also happens when running on the test website.
The navigation works for the other two buttons on the page.
The behavior occurs regardless of what name I give the page.
I know I've seen this problem discussed but can't find the answer to it, so my apologies in advance it this is a duplicate or triplicate.
Can anyone point me in the right direction?
Updating to beta 2 of JQM took care of this problem. Don't know why but it is resolved now.

Something wrong with redirects on my Joomla 1.5.18 site

My Joomla 1.5.18 site, I enabled login, when I click login the page I get sent to is NOT styled with CSS. If I login it redirects to the home page and it is not styled anymore either.
It looks like it is recursively appending stuff to the URL incorrectly.
http://www.myjoomlasite.org/index.php/index.php/login
if I click on home page or login links it keeps putting more and more index.php entries in the URL, and sometimes on the end. The following is what I get when I try and go to a JEvents menu item.
http://www.myjoomlasite.org/index.php/index.php/index.php/index.php/upcomingevents/month.calendar/2010/06/09/index.php
Anyone have any idea why this is happening? I don't know what to search for on Google apparently, and none of the Joomla! books I have address this.
I figured it out I had turned on Search Engine Friendly URLs in SEO Settings under Global Configuration. Turning this back off fixed the problem. Now I guess another question will be along the lines on how to get the Search Engine Friendly URL's to work again.
Make sure you link to stylesheets and images using a link that starts with a leading slash and therefore counts from the root.
It is the browser that evaluates the URL for those resources, based on the URL of the currently viewed HTML page. Never use relative links for these resources.

Resources