Forum Moderators: phranque

Message Too Old, No Replies

Avoid rewrite in folder

         

n0ldor

2:00 pm on Aug 27, 2011 (gmt 0)

10+ Year Member



Hello good morning, first sorry my English.

The question is I have a website where all the links point to. Php does not exist and by htaccess redirects everything to index.php which is in charge of loading as appropriate depending on the URL. To do this use the following:


<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]
</IfModule>


Until this point everything is working correctly I only now I just want to do the same for the administration, but the problem I have is that the administration is in a folder called "admin" in the same server, so the htaccess the web I get redirected to index the web.
How could I do to get into the admin folder a different htaccess?
Do you suggest me other way to do this?

thanks

g1smd

5:43 pm on Aug 27, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Add a preceding RewriteRule that rewrites ^admin/(.*) URL requests to the /admin/index.php script file.

n0ldor

12:20 pm on Aug 29, 2011 (gmt 0)

10+ Year Member



thanks a lot ;)