caedo Posted July 22, 2008 Share Posted July 22, 2008 Good day, I'm trying to implement a simple Front Controller that uses mod_rewrite , my problem is that the controller script isnt inside of the domain's directory. The file structure looks something like this: / /dir1 /dir2 front-controller.php /mydomain .htaccess My current .htaccess looks like this: RewriteEngine On RewriteCond %{SCRIPT_FILENAME} !-f RewriteCond %{SCRIPT_FILENAME} !-d RewriteRule . ../dir1/dir2/front-controller.php [L] How I have to change the path so the htaccess redirects me to that script? thanks in advance. Caedo. Quote Link to comment Share on other sites More sharing options...
corbin Posted July 29, 2008 Share Posted July 29, 2008 The redirects are client side.... So, you can't redirect the user to something out of the web root. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.