Hi. If someone can help me. I wish to use mod rewrite to change the urls from page.php in page.html (all the urls of the site) What should i write in .htacces ? Also if someone can provide me an exemple for a single page like: www. mysite.com/page.php to be rewrited as www. mysite.com/page.html. Thanks
Thanks. Can you also tell me what will be the Rewrite syntax for one single page ? I want to test it before. Thanks again.
I was thinking for a better SE friendly url's. I don't know if .php urls (without Ids) just normal .php like /page.php are indexed well or not. That's why i'm thinking about rewriting. I don't know how it works without query if you asked me. *********************************************** Edit later Finally i've managed to make the server handle .html as .php. I've tried for some time but didn't worked, and now...WOW I put " AddHandler application/x-httpd-php .php .html .htm " in .htaccess and now my page.html is parsed as a php one.
Or do Options +Indexes Options +FollowSymlinks RewriteEngine on RewriteBase / RewriteRule ^(.*)\.html$ $1.php [L] and the actual files can be page.php
Does anyone know how to do this for all the pages in a PHPNuke system? What settings can I use or is there a plug-in to change all php file names to html? Thanks in advance!
Yes there is one that I have used and its good.Changes ALL to html..Its called Googletap and you can get it from nukecops
Mod rewrite there are 2 reasons to use mod rewrite 1. Better se results, a lot of search engines will turn tail if they see the ? after .php in urls, not sure why, but se's don't really like indexing dynamically generated pages. 2. Security, what your site is coded in is irrelevant at best, and a security vulnerability at worst, if people know what language your site is coded in, they'll more easily be able to exploit any code vulnerabilities.
how can I have this code RewriteBase / RewriteRule ^([^/]*)\.html$ $1.php?%{QUERY_STRING} [NC] also be applied to sub directory pages...I want to change those to html as well....