GJSNeptune
[H]F Junkie
- Joined
- Mar 31, 2004
- Messages
- 12,372
I'm still a bit fresh with mod_rewrite. I have what I need so far working, but I'd like to be covered in case the URL contains terms that don't exist, in which case the URL should be redirected.
Example:
http://www.domain.com/admin/task
Rewrite:
RewriteRule ^/?(admin)/?(stats|submit|messages|breakinternet)$ /domain/admin.php?do=$2 [L]
If someone were to enter /admin/eaticecream, how can I rewrite the URL to go back to /admin?
Example:
http://www.domain.com/admin/task
Rewrite:
RewriteRule ^/?(admin)/?(stats|submit|messages|breakinternet)$ /domain/admin.php?do=$2 [L]
If someone were to enter /admin/eaticecream, how can I rewrite the URL to go back to /admin?