Mobile app version of vmapp.org
Login or Join
Yeniel560

: Site not loading with the www. prefix ( PyroCMS) I am using PyroCMS 2.1 pro. With multi site manager. I have a website that I have setup as somedomain.com.au. It works fine, however when i

@Yeniel560

Posted in: #Cms

I am using PyroCMS 2.1 pro. With multi site manager.

I have a website that I have setup as somedomain.com.au.

It works fine, however when i type in the prefix the CMS tells me its not setup.

If I go into the CMS and change the domain to somedomain.com.au it works but then doesnt work if we ommit the
Should I be redirecting something or have I missed a setting in PyroCMS that I should have set.

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Yeniel560

2 Comments

Sorted by latest first Latest Oldest Best

 

@Phylliss660

It doesn't matter which you choose, but you have to pick one and stick with it.

If you're looking to use the www prefix, see wwwizer.com for an easy way to automatically redirect the naked domain to the www subdomain. This can also be done with Apache rewrite rules, but since it sounds like you're on shared hosting, the other method sounds more reasonable.

If you want to REMOVE the www then you'll need to look both into the redirects, and any options your hosting provider offers you. I know for a fact that many web hosts let you redirect the www using their own tools.

10% popularity Vote Up Vote Down


 

@Hamm4606531

You can use an .htaccess to redirect one version (for example the not-www) to the other (the www). The following is an example to redirect the not-www version to the www version.

RewriteEngine On
RewriteCond %{HTTP_HOST} !^www.
RewriteRule ^(.*)$ www.%{HTTP_HOST}/ [R=301,L]

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme