Website dudes, simp...
 

  You don't need to be an 'investor' to invest in Singletrack: 6 days left: 95% of target - Find out more

[Closed] Website dudes, simple answer required

7 Posts
6 Users
0 Reactions
49 Views
Posts: 13916
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 7:52 pm
Posts: 5297
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 8:17 pm
Posts: 11292
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 8:18 pm
Posts: 16346
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 8:19 pm
Posts: 77347
Free 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 8:28 pm
Posts: 0
Free Member
 

Thanks.


 
Posted : 03/04/2012 8:29 pm
Posts: 13916
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 9:48 pm
Posts: 13916
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 7:09 am

6 DAYS LEFT
We are currently at 95% of our target!