htaccess rewrite rule

Top Page
Attachments:
Message as email
+ (text/plain)
+ (text/html)
+ (text/plain)
Delete this message
Reply to this message
Author: keith smith
Date:  
To: plug-discuss
Subject: htaccess rewrite rule


Hi,

I'm helping a friend that has a pretty sophisticated htaccess file and my htaccess skills are limited.

The link is in the form of http://www.domain.tld/state/city-content/

The file to display is in the directory /state/

The file name is city-content.php

I've looked around at a couple tutorials and the Apache docs and it all looks like Greek to me.

I'm inclined to write a rule something like RewriteRule ^/state/city-content/$ /state/ city-content.php [R=301,L]  but that does not seem to work.

Also I want the URL to not change.

Any help with a rewrite rule would be very appreciated.

Thanks in advance!




------------------------

Keith Smith---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss