Welcome Guest, Not a member yet? Register   Sign In
.htaccess for multiple applications?
#11

[eluser]wh1tel1te[/eluser]
Putting your index.php RewriteRule first overrides your admin.php RewriteRule. Put your admin.php rule first.
#12

[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;

Code:
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)




Theme © iAndrew 2016 - Forum software by © MyBB