Forum Moderators: phranque
I am trying to create a rule in mod_rewrite that will look access the folder called "home" as its root folder the rule that I have written is as follows:
RewriteRule ^http://www.someone.com\$ /Home/ [R]
this does not work and causes my url not to function.
does anyone have any suggestions thanks.
regards.
RewriteRule $SOURCEPATH $DESTINATION $OPTIONAL_FLAGS
You've specified a full URL on the $SOURCEPATH side (you've also escaped the '$', so it's looking for a URL that it will never find. When a request for '/' comes in, mod_rewrite doesn't see:
http://www.example.com/
/
RewriteRule ^/$ /Home/ [L,R]
Have you Read The Fine Manual:
Apache 1.3: [httpd.apache.org ]
Apache 2.0: [httpd.apache.org ]
?