...

View Full Version : .htaccess



Ericyip
09-09-2006, 06:06 AM
I use dreamweaver and have a hosting package at Freeparking.co.nz

I have enough capacity to host several websites and am told I can do this by modifying the .htaccess file.
I have one website eg www.1stdomain.co.nz in host directory /var/www/html/
and wish to have another www.2nddomain.co.nz website at folder at /var/www/html/www2nddomainconz/

How do I write a .htaccess file and where do I store it so it shows both websites. currently the 2nd website is mapped/forwarded to the first website

I hope to have about 6 websites hosted on the one package.

Kravvitz
09-09-2006, 10:02 AM
Try using mod_rewrite and the HTTP_HOST variable.

Search Engine Friendly URLs with mod_rewrite (http://www.devshed.com/c/a/Apache/Search-Engine-Friendly-URLs-with-mod-rewrite/)
URL Rewriting Guide - Apache HTTP Server (http://httpd.apache.org/docs-2.0/misc/rewriteguide.html)
URLS! URLS! URLS!: A List Apart (http://www.alistapart.com/articles/urls/)
fluidthoughts: howto - mod_rewrite (http://www.fluidthoughts.com/howto/mod_rewrite/)
Module Rewrite - URL Rewriting guide. (http://www.widexl.com/scripts/documentation/mod_rewrite.html)
mod-rewrite.com (http://www.modrewrite.com/)
Apache 1.3 module mod_rewrite (http://httpd.apache.org/docs/mod/mod_rewrite.html)
Ryan Brill | Cruft-Free URLs (http://www.ryanbrill.com/archives/cruft-free-urls/)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum