This is because you forgot to back up your httpd.conf… – easily fixed: First, back up the current httpd.conf: (you’ll…
I’ve just been configuring and setting up a server environment for a project i’ve been building. Everything working at it…
seems an update in plesk overnight (twice in the last few weeks) has cocked up the php session_save_path: no websites…
After building a new website for a client, i needed to redirect their old URLs to new ones, normally a…
A recent project required that we use hash navigation for speedy access to content, this also eeded to be indexed…
a few older sites that were built by fools using .htm as the extension and telling the apache to serve…
add a trailing slash to all URLs. [code]RewriteCond %{REQUEST_URI} /+[^\.]+$ RewriteRule ^(.+[^/])$ %{REQUEST_URI}/ [R=301,L][/code]
This example changes /product.php?product_id=909 to /product?id=909 [code]RewriteCond %{QUERY_STRING} product_id=(.*) RewriteRule ^product.php(.*) /product?id=%1[/code]
remove the www. [code]RewriteCond %{HTTP_HOST} !^domain.com$ [NC] RewriteRule ^(.*)$ http://domain.com/$1 [L,R=301][/code]