conor:
Hi,
Thanks for the info!
It sounds like a stupid way to set up a website. How hard is it to set up a VirtualHost directive so each additional domain **is **its own website?!
Some companies just don't have a clue unfortunately!
All the best..
Conor
ceon
Guys,
I've just glanced a bit at the discussion here, so don't know if I'm capturing everything, but...
I'm using an add-on domain from my hosting provider (Midphase) for my website (https://www.edizioninautilus.it) and it is able to successfully handle Conor's great URI mapping module.
The add-on domain is all hosted in a sub-directory under the main domain files. I've simply followed the .htaccess rules in Conor's docs and placed that .htaccess file in the root directory of the subdirectory. All seems well.
If you're interested, here's a snapshot of my .htaccess:
RewriteEngine on
Options All -Indexes
RewriteCond %{HTTP_HOST} ^nautilustorino.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.nautilustorino.com$
RewriteRule ^/?$ "http://www.edizioninautilus.it" [R=301,L]
RewriteCond %{HTTP_HOST} ^edizioninautilus.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.edizioninautilus.com$
RewriteRule ^/?$ "http://www.edizioninautilus.it" [R=301,L]
RewriteCond %{HTTP_HOST} ^nautilustorino.it$ [OR]
RewriteCond %{HTTP_HOST} ^www.nautilustorino.it$
RewriteRule ^/?$ "http://www.edizioninautilus.it" [R=301,L]
redirect 301 "/Libri/5000 anni fa - Chiomonte.html" http://www.edizioninautilus.it/5000-anni-fa-chiomonte
redirect 301 "/Libri/Archeologia del Ferro.html" http://www.edizioninautilus.it/archeologia-del-ferro
.
.
.
ErrorDocument 404 /index.php?main_page=page_not_found
Don't rewrite any URIs ending with a file extension (ending with .[xxxx])
RewriteCond %{REQUEST_URI} !.[a-zA-Z]{2,4}$
Don't rewrite admin directory
RewriteCond %{REQUEST_URI} !^/zzzzzzz.* [NC]
Don't rewrite editors directory
RewriteCond %{REQUEST_URI} !^/editors.* [NC]
Don't rewrite payment pages/callback handlers
(Won't be rewritten by rules above but included here in case rewriting of URIs ending in .php is added)
RewriteCond %{REQUEST_URI} !^/ipn_main_handler.php.* [NC]
RewriteCond %{REQUEST_URI} !^/iridium_3d_secure_iframe.php.* [NC]
RewriteCond %{REQUEST_URI} !^/localities_remote_loader.php.* [NC]
RewriteCond %{REQUEST_URI} !^/nochex_apc_handler.php.* [NC]
RewriteCond %{REQUEST_URI} !^/protx_direct_3d_secure_iframe.php.* [NC]
RewriteCond %{REQUEST_URI} !^/realex_remote_3d_secure_iframe.php.* [NC]
Don't rewrite cPanel directories
RewriteCond %{REQUEST_URI} !/cpanel.* [NC]
RewriteCond %{REQUEST_URI} !/frontend.* [NC]
Handle all other URIs using Zen Cart (index.php)
RewriteRule (.*) index.php?%{QUERY_STRING} [L]
I left out a bunch of 301 redirects where the . . . s are in the cut and paste job above because there are a ton of them and they are ultimately just a repeat of the first two that I included.
Hope that helps some.
Jeremy