Forum


HomeHomePublicPublicAdministrationAdministrationRedirecting to localhost without virtual directoryRedirecting to localhost without virtual directory
Previous
 
Next
New Post
10/27/2013 6:59 AM
 

Hi,

Hope you are doing well :)

I am setting up a development environment on AWS EC2 instance for my production site.

The issue i have is that the url is redirected to http://localhost/default.aspx instead of http://localhost/VirtualDirectory/default.aspx

I know the links work just fine when i manually type this under the url as http://localhost/VirtualDirectory/default.aspx

I have placed my virtual directory under C:\inetpub\wwwroot\VirtualDirectory

I can make this work by referring the link in the pages as href='/VirtualDirectory/default.aspx' instead of href='/default.aspx', but i will have to change this in a lot of places and change in those many places when i move things to production to remove the directory before going live.

I am using DNN version 5.06.03, is this a bug or i have to make some changes.

Thanks

Sameer

 
New Post
10/28/2013 4:01 AM
 

Hi Sameer,

I strongly suggest that you use a temporary domain or URL to develop your site. Using virtual directories usually complicate things when moving the site live later on.

When you use a temp domain and it comes time to move to a final live domain, you just have to change the portal alias.

Also, you should be setting up a new site under IIS for that temp domain, not a virtual directory.

I know this may not have addressed your question directly but I think this is a better approach in general.

Cheers,

Aderson

 
New Post
10/31/2013 7:28 PM
 

Thanks Anderson, I know there was no solution to the virtual directory. I put the files directly under the root folder of inetpub and it is working there.

-Sameer

 
Previous
 
Next
HomeHomePublicPublicAdministrationAdministrationRedirecting to localhost without virtual directoryRedirecting to localhost without virtual directory



Try FREE
30 days money back guaranteed