Jump to content

mod_rewrite problems


caedo

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.