Forum Moderators: phranque

Message Too Old, No Replies

.htaccess

regarding redirection from webroot to folder

         

sham1321

9:08 am on Feb 19, 2009 (gmt 0)

10+ Year Member



Hi everyone!

i need redirect my path from

app/webroot/myfolder to /myfolder, i tried some rewrite rule but its not working.. i am using cake php...

i tried this
RewriteRule ^app/webroot/myfolder/$ [mydomain.com...] [R=301,L]

can any one help me

thanks in advance

jdMorgan

3:17 pm on Feb 19, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Unless you have other working RewriteRules already in that file, you will likely need to add either both of these lines above your rule, or at least add the second line. The only way to find out whether both are required is to test -- preferably with a very simple rule, such as a redirect from "foo.html" to google.com or similar.

Options +FollowSymLinks
RewriteEngine on

Jim