mod_rewrite problems |
[eluser]Anonymous[/eluser]
I'm having some problems with a simple mod rewrite. I'm trying to setup a 301 redirect on domain.tld to www.domain.tld or with any other uri string domain.tld/example-uri to www.domain.tld/example-uri The problem: Upon accessing www.domain.tld everyting goes well. Upon accessing domain.tld i get redirected to www.domain.tld/domain/ I really have no clue where the last /domain/ comes from ? My directory structure is as follows Code: -htdocs For convenience i have numbered the .htaccess files 1 and 2. .htacces1 Code: <IfModule mod_rewrite.c> .htaccess 2 Code: RewriteEngine on Anyone care to help me ?
[eluser]Anonymous[/eluser]
This is becoming real pain in the ass. Anybody can kick me in the right direction ?
[eluser]pickupman[/eluser]
How About this for .htaccess2 Code: RewriteEngine On I don't think you would even need one above the document root. No one could browse up the tree to even access that file. |
Welcome Guest, Not a member yet? Register Sign In |