php - Conflict with 3 different RewriteRules in .htaccess? -


i'm using below in .htaccess file.

there 3 types of redirects:

  1. redirect directory /admin/index.php
  2. redirect specific .php files e.g. /about
  3. 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

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -