On Mar 19, 2007, at 12:28 PM, tedd wrote:
[1] http://sperling.com/contact
instead of the new:
[2] http://sperling.com/contact.php
How can I get the url displayed to look like number [1] regardless if the user adds ".php" or not?

I was messing around with it and it seems the only way to get it to work without causing a circular redirect is to put your php code in a file named contact (without the .php) and get apache to process that with php -- I forget how to do this but seem to remember someone posting it on the list last summer. Then you can have almost the opposite rule of what you currently have:
RewriteRule ^contact.php$ /contact [R]

_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk

NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com

Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php

Reply via email to