What do you mean with "is not working"?
Your rule
RewriteCond %{REQUEST_FILENAME}.php -f requests that for a request like /abc
the file named /abc.php
exists. Is that what you want?
Your last rule will never catch anything in its second pair of brackets. In RewriteRule ^(.*)(/?)$ index.php?p=$1 [L]
the first bracket pair catches all content.
smantscheff
Nearly a Posting Virtuoso
1,233 posts since Oct 2010
Reputation Points: 300
Solved Threads: 254
Anyone have any insight on this?
... the weird thing is I got an email saying someone replied to this and I dont see anything.
This happened because a spammer replied to your thread, but then a moderator deleted their post.
Try the .htaccess file:
RewriteEngine On
RewriteRule ^([a-z0-9]+).html$ index.php?p=$1 [L]
Then, blah.html will redirect to index.php?p=blah
cscgal
The Queen of DaniWeb
19,421 posts since Feb 2002
Reputation Points: 1,474
Solved Threads: 229
smantscheff
Nearly a Posting Virtuoso
1,233 posts since Oct 2010
Reputation Points: 300
Solved Threads: 254
There is nothing in the IT world which happens automatically.
To make the /contact link work, you'll first have to install the modification from my previous post.
smantscheff
Nearly a Posting Virtuoso
1,233 posts since Oct 2010
Reputation Points: 300
Solved Threads: 254
Please mark this thread as solved.
smantscheff
Nearly a Posting Virtuoso
1,233 posts since Oct 2010
Reputation Points: 300
Solved Threads: 254