htaccess rewrite rule

keith smith klsmith2020 at yahoo.com
Sun Aug 21 21:12:54 MST 2011



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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.PLUG.phoenix.az.us/pipermail/plug-discuss/attachments/20110821/e8ee87d2/attachment.html>


More information about the PLUG-discuss mailing list