]> .htaccess | Web Developer Reference Blog

Forwarding non-www requests to www domain

Monday, June 7th, 2010

Add this snippet to your .htaccess file to automatically and visibly rewrite the URL entered by the user, to a single URL. i.e. ‘www.example.com/somepage/’ and  ‘example.com/somepage/’ should both resolve to ‘www.example.com/somepage/’.

(more…)

Pointing Website Root To osCommerce Catalogue Directory

Monday, May 31st, 2010

This is a simple snippet and configuration change which you can use to point the root of your website to your installation directory, normally ‘catalog’. This would mean the URL in the address bar would become http://www.mydomain.com/index.php instead of http://www.mydomain.com/catalog/index.php. An amateur coder could easily modify this code for other web projects. Pointing website root to WordPress installation directory

(more…)