Hallo
Please can anyone help
CMSMS is 1.11.7
I have set up a few sites with pretty urls and all works fine.
But in this case, when I add the config.php
$config['url_rewriting'] = 'mod_rewrite';
and copy down the .htaccess from docs everything crashes “server error” even the back end.
Normally there is no problem all runs as it should, but not in this case.
Is this problem because because our domain is remote hosted.
Domain at 123.domains uk, Website with 1und1 Germany.
If so can you tell me how to deal with this please?
Pretty URLs with remote domain - Solved
Pretty URLs with remote domain - Solved
Last edited by Dave59 on Sat Jul 27, 2013 1:37 pm, edited 1 time in total.
Re: Pretty URLs with remote domain
Some hosters don't like/allow some rules in .htaccess (I hope you mean the htaccess.txt from the /docs by the way).
one.com for example made be commenting this line
but I see it's now commented by default.
Try by stripping the .htaccess down to the minimum required for url_rewrite. I think this should do:
one.com for example made be commenting this line
Code: Select all
php_value session.cookie_httponly true
Try by stripping the .htaccess down to the minimum required for url_rewrite. I think this should do:
Code: Select all
<IfModule mod_rewrite.c>
RewriteEngine on
#
#Sub-dir e.g: /cmsms
RewriteBase /
# 301 Redirect all requests that don't contain a dot or trailing slash to
# include a trailing slash
# but ignore POST requests.
#RewriteCond %{REQUEST_URI} !/$
#RewriteCond %{REQUEST_URI} !\.
#RewriteCond %{REQUEST_METHOD} !POST$
#RewriteRule ^(.*) %{REQUEST_URI}/ [R=301,L]
# Rewrites urls in the form of /parent/child/
# but only rewrites if the requested URL is not a file or directory
#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ index.php?page=$1 [QSA]
</IfModule>
Re: Pretty URLs with remote domain-solved
Great thanks for the reply. This works for the pretty URLs, I must compare this to my short version that didn't work. My version did work on all other sites with the same provider, very strange. I still have a lot to learn.
Now something very strange happens.
I only have one template. The CSS becomes detached on some pages.
http://www.service-mot-repairs.co.uk
All CSS is detached it is called up in the source code but not applied.
On others pages it is OK? I can't believe this. I do not know when this started happening.
With the update to 1.11.7? Other sites I updated such as http://www.plasma-treating.com work fine.
commented out the “$config['url_rewriting'] = 'mod_rewrite';” in config php and removed the htaccess, but it still is not there.
The css is called up in the source code on all pages.
I will dig deeper into this one and try to find the answer.
Now something very strange happens.
I only have one template. The CSS becomes detached on some pages.
http://www.service-mot-repairs.co.uk
All CSS is detached it is called up in the source code but not applied.
On others pages it is OK? I can't believe this. I do not know when this started happening.
With the update to 1.11.7? Other sites I updated such as http://www.plasma-treating.com work fine.
commented out the “$config['url_rewriting'] = 'mod_rewrite';” in config php and removed the htaccess, but it still is not there.
The css is called up in the source code on all pages.
I will dig deeper into this one and try to find the answer.
Re: Pretty URLs with remote domain
At this moment I got this message when visiting your site:
Site Admin » System Maintenance --> Cache and Content (tab) -> Clear button.
This should be at the top of every cmsms troubleshooting guide: "CLEAR CACHE FIRST"
After that's fixed, make sure to clear cache:The following directories must be writable by the web server:
tmp/cache
tmp/templates_c
Please correct by executing:
chmod 777 tmp/cache
chmod 777 tmp/templates_c
or the equivilent for your platform before continuing.
Site Admin » System Maintenance --> Cache and Content (tab) -> Clear button.
This should be at the top of every cmsms troubleshooting guide: "CLEAR CACHE FIRST"
Re: Pretty URLs with remote domain
Sorry I was just restoring an old backup.
I am back with the running website and the problem is there again.
After every change I cleared the cache both in CMSMS and in Chrome.
That is my first stop. Looked at the css media types etc.
Tried switching to NcleanBlue template for the problem page. Same problem no css.
I do not know why, but now the CSS for the menu is attached on all pages
Cache and templates are on 777 again.
You must have caught me in the middle of making changes. Sorry
Dave
I am back with the running website and the problem is there again.
After every change I cleared the cache both in CMSMS and in Chrome.
That is my first stop. Looked at the css media types etc.
Tried switching to NcleanBlue template for the problem page. Same problem no css.
I do not know why, but now the CSS for the menu is attached on all pages
Cache and templates are on 777 again.
You must have caught me in the middle of making changes. Sorry
Dave
Re: Pretty URLs with remote domain
Somewhere in your template you have a link to Google fonts css. But the tag is not closed.
http://www.service-mot-repairs.co.uk/ve ... orthampton
That might be the reason that another stylesheet is not loaded.
After a closer look, I think I found another (the) problem:
The last double quote is not a normal double quote. Replace it and I think it's solved.
http://www.service-mot-repairs.co.uk/ve ... orthampton
Code: Select all
<head>
<link href='http://fonts.googleapis.com/css?family=Oswald' rel='stylesheet'
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
After a closer look, I think I found another (the) problem:
Code: Select all
<meta name="description" content="vehicle Air Conditioning system re-gas service Northampton area”>
Re: Pretty URLs with remote domain -solved
Yes I had just found out that it occurs when I add the meta text.
I have remade contact with no meta text and it works.
Had not spotted the double quote though. The joys of copy and paste.
It is always simple things that cause the most pain.
Thank you for the really fantastic support.
Thank you
I have remade contact with no meta text and it works.
Had not spotted the double quote though. The joys of copy and paste.
It is always simple things that cause the most pain.
Thank you for the really fantastic support.
Thank you
Re: Pretty URLs with remote domain - Solved
Second lesson (after clear cache): use a decent browser with web inspector. E.g. Firefox with Firebug.
It's important to see how the browser interprets the code you THINK you see.
In this case the w3c markup validator should have helped too I think.
It's important to see how the browser interprets the code you THINK you see.
In this case the w3c markup validator should have helped too I think.