[Solved] Nice URLs not working with 1.11.7 ?
[Solved] Nice URLs not working with 1.11.7 ?
I have a problem getting nice URLs to work with CMSMS 1.11.7.
What's so weird is that I have done this many times before, with older versions, and I am using the same lines of code this time:
In htaccess file:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ index.php?page=$1 [QSA]
</IfModule>
In config.php file:
$config['url_rewriting'] = 'mod_rewrite';
$config['assume_mod_rewrite'] = true;
But it just doesn't work (pages cannot be found). What am I missing? (Something obvious, I'm sure.) Any ideas, anyone?
/ulf
What's so weird is that I have done this many times before, with older versions, and I am using the same lines of code this time:
In htaccess file:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ index.php?page=$1 [QSA]
</IfModule>
In config.php file:
$config['url_rewriting'] = 'mod_rewrite';
$config['assume_mod_rewrite'] = true;
But it just doesn't work (pages cannot be found). What am I missing? (Something obvious, I'm sure.) Any ideas, anyone?
/ulf
Last edited by palun on Mon Jan 13, 2014 9:35 am, edited 1 time in total.
Re: Nice URLs not working with 1.11.7 ?
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Re: Nice URLs not working with 1.11.7 ?
I have read it. But I still cannot see what I'm missing.
/ulf
/ulf
Re: Nice URLs not working with 1.11.7 ?
It's hard for us to tell you what to do if we don't know what you have done already, step by step is best...
The htaccess stuff you pasted here is not what is in the htaccess.TXT or at least not all of it, the config rewrite below is the only one you need, the one below it is for page extension and you should have some kind whether it's .html or .php or .asp or whatever...
$config['url_rewriting'] = 'mod_rewrite';
$config['page_extension'] = '.html';
The htaccess stuff you pasted here is not what is in the htaccess.TXT or at least not all of it, the config rewrite below is the only one you need, the one below it is for page extension and you should have some kind whether it's .html or .php or .asp or whatever...
$config['url_rewriting'] = 'mod_rewrite';
$config['page_extension'] = '.html';
Re: Nice URLs not working with 1.11.7 ?
hi ,
here the same
i have cmsms 1.11.9
have installed te seo tools2
after this i have done step by step as told at
http://docs.cmsmadesimple.org/configuration/pretty-url
but now i get a 404 Not Found error
the only page that works is the index
the news module pages give also the 404 ,,
here the same
i have cmsms 1.11.9
have installed te seo tools2
after this i have done step by step as told at
http://docs.cmsmadesimple.org/configuration/pretty-url
but now i get a 404 Not Found error
the only page that works is the index
the news module pages give also the 404 ,,
Re: Nice URLs not working with 1.11.7 ?
http://docs.cmsmadesimple.org/troublesh ... -error-404maconl wrote:the news module pages give also the 404
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Re: Nice URLs not working with 1.11.7 ?
I think you should start to ask/verify with you hosting provider that mod_rewrite is allowed to be used.
Re: Nice URLs not working with 1.11.7 ?
hi ,
have also a webshop with friendly urls running on this server
so this is not the problem for me
have also a webshop with friendly urls running on this server
so this is not the problem for me

Re: Nice URLs not working with 1.11.7 ?
Can you post a link to the website?
You did not change the 'page' parameter during setup of cmsms? (it would be in the config.php file).
You did not change the 'page' parameter during setup of cmsms? (it would be in the config.php file).
Re: Nice URLs not working with 1.11.7 ?
Here is what I did. It works. I run the 1.11.9 version.
1. Add the two lines in your config.php
$config['url_rewriting'] = 'mod_rewrite';
$config['page_extension'] = '.html';
2. Paste this from the htaccess.txt (root/docs) in your .htaccess file:
RewriteEngine On
#Sub-dir e.g: /cmsms
RewriteBase /
# 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]
Also, in the head section of your HTML template, make sure that you have the {metadata} inserted.
1. Add the two lines in your config.php
$config['url_rewriting'] = 'mod_rewrite';
$config['page_extension'] = '.html';
2. Paste this from the htaccess.txt (root/docs) in your .htaccess file:
RewriteEngine On
#Sub-dir e.g: /cmsms
RewriteBase /
# 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]
Also, in the head section of your HTML template, make sure that you have the {metadata} inserted.
Re: Nice URLs not working with 1.11.7 ?
Hi trenia,
tnx to point me in a direction ,,,
i had the lines already in my htaccess en config.php
also the {metadata} was already in the template
but when i say your message you pointed me in a direction
the only thing i still have is the category from the news is not a pretty url but the articles are ,,
so perhaps the other solution what Rolf posted will help in this
will try this later today ,,
Velden , no everything in config.php is ok
the problem was the htaccess file ,,
eh <
> from the webshop on the same server
when i changed this htaccess it works like a charm except the category
thanks for the great help on this
tnx to point me in a direction ,,,
i had the lines already in my htaccess en config.php
also the {metadata} was already in the template
but when i say your message you pointed me in a direction

the only thing i still have is the category from the news is not a pretty url but the articles are ,,
so perhaps the other solution what Rolf posted will help in this
will try this later today ,,
Velden , no everything in config.php is ok

the problem was the htaccess file ,,
eh <


when i changed this htaccess it works like a charm except the category
thanks for the great help on this
Re: Nice URLs not working with 1.11.7 ?
I believe so. Works for me. No more questions here in a while. What do you think Palun?
Re: Nice URLs not working with 1.11.7 ?
I have now marked the thread as 'solved'. I never actually got around to trying any of the suggested solutions (customer lost interest in his business, and his web). I left the thread unsolved out of curiosity (anyone else experiencing the same mysterious problem?). But nice URLs are working fine on my other webs so...Trenia wrote:I believe so. Works for me. No more questions here in a while. What do you think Palun?
Thanks all!
/ulf