imagine following situation:
i've got folder on webserver:
www.domain.com/test/project
in "project", i've got whole php application. in "project" i've got following .htaccess file:
rewriteengine on rewritecond %{request_filename} !-d rewriterule ^(util/(css|js))($|/) - [l] rewritecond %{request_filename} !-d rewriterule ^(ui/designs)($|/) - [l] rewriterule ^(.+)$ index.php?uri=$1 [qsa,l]
which allows me have url example:
www.domain.com/test/project/admin/user
i've allowed access "util/(css|js)" loading css , js files ther
but want have url example:
www.domain.com/test/admin/user
so basically, shift "project" folder....
is possible .htaccess file?
is possible following example:
www.domain.com/project/admin/user www.domain.com/admin/user
please me, tap 500 internal server error :(
i tried this:
rewriterule ^test/(.+)$ http://www.happydomain.org/folder/$1 #[r=301,l]
i've got solution! =)
this .htaccess must adden in "test" folder - concerning example mentioned in question
rewriteengine on rewritecond %{request_uri} !^project/ rewriterule ^(.*)$ project/$1 [l]
Comments
Post a Comment