I have been looking the entire evening for any solution/method for my trouble with my .htaccess file.

Essentially I've www.site.com having a .htaccess within the www directory using the following content:

Options +FollowSymlinks
RewriteEngine on
RewriteCond %{REQUEST_URI} !^(/admin)
RewriteRule ^[^_+/]. index.php

It really works all right and enables www.site.com/en/articles/Interesting_title/3 to become parsed by index.php which reads which controller, language and what article to show.

However I would like for that admin system to operate exactly the same way. www.site.com/admin must have an .htaccess files that let me write URL's by doing this.

world wide web.site.com/admin/en/articles/article_title/3 should let me edit article # 3 using en british UI.

Dumping $_SERVER['REQUEST_URI'] within the first situation gives "en/articles/Interesting_title/3"
Dumping $_SERVER['REQUEST_URI'] within the second situation gives "admin/en/articles/article_title/3"

Basically in a later point decide to move administration to www.site.com/shassooo I must avoid altering any code other then your .htaccess files.


Append this line within the same .htaccess file you've, not under admin sub directory:

RewriteCond %{REQUEST_URI} !^/admin/index.php$ [NC]
RewriteRule ^admin/[^_+/]. /admin/index.php [L,NC]