Community

Forum menu
Website dudes, simp...
 

[Closed] Website dudes, simple answer required

Posts: 14284
Free Member
Topic starter
 

How do I make a website mydomain.com automatically open my domain.com/a_folder when someone goes to my domain.com?
I've tried forwarding but am getting an error message.


 
Posted : 03/04/2012 8:52 pm
Posts: 5300
Full Member
 

The default settings on the server will usually disable the ability to view the contents of folders for security reasons.

As long as that's enabled, just set the folder as the default directory of the website.


 
Posted : 03/04/2012 9:17 pm
Posts: 11554
Full Member
 

Tried creating an index.html file with a redirect in it? Redirect to sub folder after 0 seconds...not the best but probably easiest to setup for ease.


 
Posted : 03/04/2012 9:18 pm
Posts: 16382
Free Member
 

I think you are looking for a 'redirect' eg http://www.webworkshop.net/auto-redirecting_methods.html

EDIT: Too slow


 
Posted : 03/04/2012 9:19 pm
Posts: 78299
Full Member
 

The quick and dirty way is to put a redirect on the home page in the root directory.

The 'correct' way is to set the home page properly in the server's settings.

"I'm getting an error" isn't very helpful on its own. The keyword there is "message".

The other question, of course, is "why would you want to"?


 
Posted : 03/04/2012 9:28 pm
Posts: 0
Free Member
 

Thanks.


 
Posted : 03/04/2012 9:29 pm
Posts: 14284
Free Member
Topic starter
 

Cougar, posted from my phone with access to the error message. I'll have a look at it tomorrow.


 
Posted : 03/04/2012 10:48 pm
Posts: 14284
Free Member
Topic starter
 

Sorted. I was setting up a wild card redirect to a subfolder which was causing the error, got rid of the wild card and all is fixed ๐Ÿ™‚
Thanks all


 
Posted : 04/04/2012 8:09 am