rewrite redirect fun
rewrite redirect fun
- Started
- Last post
- 4 Responses
- mikotondria3
hi folks...need a little help..
I have a site all ready to go in
myserver.com/folder/index.phpbut I just want the visitor to go to
myserver.com and silently be redirected to the real site..I tried:
RewriteRule ^(.*)$ /folder/index.phpbut when it gets there, the page seems to be confused about 'where' it is, and not display properly.
Any clever folks know the quick answer ?
- lukus_W0
pay me money and I'll do your work
- Jnr_Madison0
301 redirect
- airey0
can you not just delete the 'index.php' from the redirect as the browser will load that automatically when it gets to the directory?
- lukus_W0
you do need to use mod_rewrite ... but you need to google properly .. afaik you need a RewriteCond statement before the RewriteRule