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. Link to comment https://forums.phpfreaks.com/topic/116036-mod_rewrite-problems/ 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. Link to comment https://forums.phpfreaks.com/topic/116036-mod_rewrite-problems/#findComment-602306 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.