php - Conflict with 3 different RewriteRules in .htaccess? -
i'm using below in .htaccess file.
there 3 types of redirects:
- redirect directory /admin/index.php
- redirect specific .php files e.g. /about
- redirect user profile page /john
all 3 work on local environment, on server 1 , 3 works. i'd appreciate tell me why file redirects of type /about not working me.
many thanks.
<ifmodule mod_rewrite.c> options -multiviews options +followsymlinks rewriteengine on rewritebase / rewriterule ^admin$ /admin/index.php [qsa,l] rewriterule ^about/?$ /about.php [qsa,nc,l] rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule ^([_a-z0-9a-z-+\.]+)/?$ /public_profile.php?id=$1 [l] </ifmodule> errordocument 404 /404.php
Comments
Post a Comment