.htaccess for two websites on one hosting contract - Joomla! Forum - community, help and support
dear forum users, readers , advisers,
i have 2 joomla websites on 1 hosting contract. both websites need sef url's switched on.
the 2 url's example:
http://www.myofficesite.com
http://www.myhomesite.com
i have done joomla install http://www.myofficesite.com
i made sub domain www2.myofficesite.com
i did joomla install in www2 folder http://www.myhomesite.com
both domain names registered same company @ same time hosting company on same hosting contract. allow 2 have 2 domain names on 1 contract.
i know need have .htaccess file in root redirect, need .htaccess in www folder , in www2 folder. sef url's have work. .htaccess files not original text files anymore renamed .htaccess.
for reason there www1 folder...?
now problem not having correct .htaccess files causing incorrect redirecting , if redirect work htaccess files, sef url's cannot used. think in poop.
i sorry if simple question, @ wits end. hosting company say: contact web developers,...uhh,huh, that's me guy!
the root htaccess file has content @ moment:
----
rewriteengine on
rewritecond %{http_host} http://www.myofficesite.com
rewriterule ^(.*)$ http://www.myofficesite.com/$1 [r,l,qsa]
rewritecond %{http_host} http://www.myhomesite.com
rewriterule ^(.*)$ http://www2.myofficesite.com/$1 [r,l,qsa]
-----
i think correct. if not please tell me must change?
can please tell me content of root htaccess file must if above not correct?
can please tell me content of www folder htaccess file must be?
can please tell me content of www2 htaccess file must be?
sorry once again if question basic.
thank in advance taking time read post , forward seeing repies.
regards all,
andy
i have 2 joomla websites on 1 hosting contract. both websites need sef url's switched on.
the 2 url's example:
http://www.myofficesite.com
http://www.myhomesite.com
i have done joomla install http://www.myofficesite.com
i made sub domain www2.myofficesite.com
i did joomla install in www2 folder http://www.myhomesite.com
both domain names registered same company @ same time hosting company on same hosting contract. allow 2 have 2 domain names on 1 contract.
i know need have .htaccess file in root redirect, need .htaccess in www folder , in www2 folder. sef url's have work. .htaccess files not original text files anymore renamed .htaccess.
for reason there www1 folder...?
now problem not having correct .htaccess files causing incorrect redirecting , if redirect work htaccess files, sef url's cannot used. think in poop.
i sorry if simple question, @ wits end. hosting company say: contact web developers,...uhh,huh, that's me guy!
the root htaccess file has content @ moment:
----
rewriteengine on
rewritecond %{http_host} http://www.myofficesite.com
rewriterule ^(.*)$ http://www.myofficesite.com/$1 [r,l,qsa]
rewritecond %{http_host} http://www.myhomesite.com
rewriterule ^(.*)$ http://www2.myofficesite.com/$1 [r,l,qsa]
-----
i think correct. if not please tell me must change?
can please tell me content of root htaccess file must if above not correct?
can please tell me content of www folder htaccess file must be?
can please tell me content of www2 htaccess file must be?
sorry once again if question basic.
thank in advance taking time read post , forward seeing repies.
regards all,
andy
you need 1 .htaccess file in root, has of rewrite rules.
i believe have following configuration:
~/root/www
~/root/www2
the .htaccess rules should be:
rewriteengine on
rewritecond %{http_host} http://www.myofficesite.com
rewriterule ^(.*)$ http://www.myofficesite.com/www/$1 [r,l,qsa]
rewritecond %{http_host} http://www.myhomesite.com
rewriterule ^(.*)$ http://www2.myofficesite.com/www2/$1 [r,l,qsa]
if want rid of /www/ , /www2/ @ end, , have subdomain www2 differentiate 2 sites, need 2 vhost containers. you'll need hosting account that.
i believe have following configuration:
~/root/www
~/root/www2
the .htaccess rules should be:
rewriteengine on
rewritecond %{http_host} http://www.myofficesite.com
rewriterule ^(.*)$ http://www.myofficesite.com/www/$1 [r,l,qsa]
rewritecond %{http_host} http://www.myhomesite.com
rewriterule ^(.*)$ http://www2.myofficesite.com/www2/$1 [r,l,qsa]
if want rid of /www/ , /www2/ @ end, , have subdomain www2 differentiate 2 sites, need 2 vhost containers. you'll need hosting account that.
Comments
Post a Comment