Scripts and functions that I have written or found useful

Archive for the ‘mod_rewrite’ Category

Drupal htaccess for SEO friendly URLs

Wednesday, February 27th, 2008 Posted in Drupal, mod_rewrite | No Comments »

I have had some issues myself with drupal websites and getting the SEO friendly URLs to work when I either have no access to the server or the server changes cannot be made (CPANEL does cause a problem) Attached is a ...

mod rewrite change php to htm

Saturday, August 18th, 2007 Posted in PHP, mod_rewrite | No Comments »

Options +Indexes Options +FollowSymlinks RewriteEngine on RewriteBase / RewriteRule ^(.*)\.htm$ $1.php [L] If you change your pages from htm (or html) to php and want to maintain links particularly from Google then you can place the code above in your .htaccess file in the root ...