Re: how to test if rewrite rule is working

From: Date: Sun, 09 Jun 2002 02:49:05 +0000
Subject: Re: how to test if rewrite rule is working
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-101307@lists.php.net to get a copy of this message
On Sat, 8 Jun 2002, Nicole Lallande wrote: > I have created the following htaccess file using rewrite rules for the > purpose of having search engine friendly files created from my dynamic > files. > > RewriteEngine On > RewriteRule ^index-(.*),(.*)\.html$ index.php?section=$1&page=$2 > RewriteRule ^nav-(.*),(.*)\.html$ nav.php?section=$1&page=$2 > > How do I test to see if this is working from a search engine robot > standpoint? I don't see anything in my log files and I don't see that > the URI in the address bar has changed. Am I doing something wrong? This isn't a PHP question. If you don't have the rule do a redirect [R] then you won't see a change in the address bar. The obvious way to test it in any case is to supply a URL like index-1,2.html or whatever and see if you get to the right place. miguel

« previous php.general (#101307) next »