I want people to type in domain.com/index.html and see index.php e.g something like: RewriteEngine on RewriteBase / RewriteRule ^index\.html$ /index\.php Code (markup): How can I make this work on ALL (wildcard) pages?
Options +FollowSymLinks +Indexes RewriteEngine on RewriteBase / RewriteRule ^([^.]+)\.html$ $1.php [L]
Is there a specific benifit of this action or was it for a more personal/specific reason. I do remember someone saying a long time ago it would be better (seo wise) if your site is all php or all html, any truth in this?
no truth what so ever it does however hide what programming language your using [to the untrained eye anyway] and makes it look more "noob" friendly noobs have seen .html before, noobs havent seen .php?weird_att=56565 noobs get scared
Static makes sure it's search engine friendly for all search engines. Some search engines just hate it when you have stuff like ? and &. And Google hates session IDs.
you could also ask your server admin if they can add in .html as a php parsing extension as well, not sure if that is an option for you, but it is another way to go.
The reason I needed to do it = I'm redesigning a site for somebody that already has good PR on their html pages, but I want to use PHP
Then your best bet is to edit htacess with this: This code will allow you to run php scripts in an html page. That way you don't have to do any url re-writing.. much better
I do have an issue with sessions on the newest site I am working on, have you already done a thread targeting this issue or can you give me a few tips here, or is it just the same as rewriting any dynamic url?
I am trying to embed php into my site that has a .html extension, I followed the above example but it did not work