Menu
hello forums !!
CASE:
I want to have the url
1> [url]http://mysite.com/admin
(Note: if there is no any segment after admin it should be routed to admin/login)
2> [url]http://mysite.com/admin/any
And I performed the following for the url rewriting
[CODE]RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^admin/(.*)$ admin/index.php?q=admin/$1 [QSA,L]
this is only working for 2> case
i would like to know how to handle for case 1> too ?
Any idea?
Thanks