• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
.htaccess for multiple applications?

Putting your index.php RewriteRule first overrides your admin.php RewriteRule. Put your admin.php rule first.

[eluser]Rein Van Oyen[/eluser]
Again; thanks for the replies.

I have reorganised my folder structure and renamed the admin.php to index.php and placed it in a new folder called admin.

I'm using this in my htaccess;

RewriteEngine On

Options Indexes FollowSymlinks Multiviews
RewriteBase /

RewriteCond $1 !^(index\.php|admin|_images|_css|_js|_uploads|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]

Everything works just fine, except that the /admin/ folder does not automatically point to the index.php in it. It show me a list of all files in it (opendir). So do the other folders I excluded from the rule.

Anyone who has a clue?

(Sorry for stretching this thread for so long, me + mod_rewrite = no good idea)

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.