Re: [PHP] how to test if rewrite rule is working

2002-06-08 Thread Miguel Cruz

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


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] how to test if rewrite rule is working

2002-06-08 Thread Nicole Lallande

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?

TIA,

Nicole

-- 

Nicole Lallande
[EMAIL PROTECTED]
760.753.6766




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php