Forum Moderators: phranque

Message Too Old, No Replies

Rewrite to sub folder?

         

LoudNoiseElitist

2:49 pm on Apr 2, 2008 (gmt 0)

10+ Year Member



I've been digging around for this all day but I can't seem to find anything that works.

Basically when someone goes to my site, I want them to be redirected toa subfolder for the current version of the site. For example:

'http://www.mysite.com' would redirect to 'http://www.mysite.com/1.0' but still show up as 'http://www.mysite.com'. Is this even possible?

jdMorgan

8:30 pm on Apr 2, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yes, it's possible, but it is an internal rewrite and not an external redirect that you want. Try searching this site for "rewrite subfolder rewriterule" (and also try "subdirectory" instead of "subfolder") and that should turn up a few hundred previous threads. If you have any trouble with implementation after reading some of those threads, please post your code here for discussion.

Thanks,
Jim