davo Posted November 7, 2016 Share Posted November 7, 2016 Hi, I have a site running PW 2.8. I moved it to a new server and (possibly foolishly) did the 2.8 upgrade at the same time. Now, all the pages are no longer using the www prefix which has screwed with search engine indexing somewhat. I don't know if it's the way the host file was created on the server or because i have over written the htaccess file. I though that on the .htaccess file I could uncomment the following two lines to prepend www but when i do this i'm getting a 500 error: # ----------------------------------------------------------------------------------------------- # 13. OPTIONAL: Redirect users to the 'www.' version of the site (uncomment to enable). # For example: http://processwire.com/ would be redirected to http://www.processwire.com/ # ----------------------------------------------------------------------------------------------- # RewriteCond %{HTTP_HOST} !^www\. [NC] # RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301] Any advice please? Davo Link to comment Share on other sites More sharing options...
szabesz Posted November 8, 2016 Share Posted November 8, 2016 Hi, In your /site/config.php do you have $config->httpHosts = array('yourdomain.com', 'www.yourdomain.com'); ? Link to comment Share on other sites More sharing options...
davo Posted November 11, 2016 Author Share Posted November 11, 2016 I do indeed. I've sorted it now though. I adjusted the preferred domain in plesk. I don't think the server can have mod rewrite installed Link to comment Share on other sites More sharing options...
Robin S Posted November 12, 2016 Share Posted November 12, 2016 10 hours ago, davo said: I don't think the server can have mod rewrite installed If that were so PW wouldn't work full stop. 1 Link to comment Share on other sites More sharing options...
LostKobrakai Posted November 12, 2016 Share Posted November 12, 2016 Without url rewriting only processwire's homepage will work and maybe – if you really want go that way – the internal GET entry point like: www.domain.com/?it=/my/path/ See the requirements: http://processwire.com/about/requirements/ 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now