Hi,
I'm trying to set up pretty url's CMSMS VERSION: 1.10.3.
The issue i'm having is that I am getting two backslashes instead of one following my domain name.
e.g "http://mysite.co.uk//services/project.html
Any idea why the extra forward slash would be coming from?
$config['url_rewriting'] = 'mod_rewrite';
$config['page_extension'] = '.html';
$config['use_hierarchy'] = true;
$config['query_var'] = 'page';
And my .htaccess file
Options +FollowSymLinks
RewriteEngine on
RewriteBase /
# 301 Redirect all requests that don't contain a dot or trailing slash to
# include a trailing slash
# except for form POSTS
RewriteCond %{REQUEST_URI} !/$
RewriteCond %{REQUEST_URI} !\.
RewriteCond %{REQUEST_METHOD} !POST$
RewriteRule ^(.*) %{REQUEST_URI}/ [R=301,L,NE]
# 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,NE]
[solved] pretty url double //
[solved] pretty url double //
Last edited by son123 on Tue Jun 05, 2012 3:43 pm, edited 2 times in total.
Re: pretty url double //
Sounds like your root url has a / on the end of it...
$config['root_url'] = 'http://somesite.com/';
Should be...
$config['root_url'] = 'http://somesite.com';
$config['root_url'] = 'http://somesite.com/';
Should be...
$config['root_url'] = 'http://somesite.com';
Re: pretty url double //
That was my first thought, but... no it has no trailing forward slash:
$config['root_'] = 'http://yawtest.sensorystore.co.uk';
$config['root_'] = 'http://yawtest.sensorystore.co.uk';
Re: pretty url double //
Actually, I don't think you need:
Try to comment out that line:HTH!
Code: Select all
RewriteBase /
Code: Select all
#RewriteBase /
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
SOLVED! Re: pretty url double //
Thanks for your help. the issue wasn't a mis-configured config parameter but a mis-pelt one. not sure how that happened but all working fine now.
$config['root_'] instead of $config['root_url']
$config['root_'] instead of $config['root_url']
Re: pretty url double //
That's why we link all the system info we can get...
http://forum.cmsmadesimple.org/viewtopic.php?f=3&t=8692
http://forum.cmsmadesimple.org/viewtopic.php?f=3&t=8692