Pretty URL's

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: Pretty URL's

Post by velden »

First of all: your cmsms version is way too old, not supported anymore and should be upgraded asap.

That said: do you have access to apache error/access logs? Read those and try to determine what happens.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Pretty URL's

Post by Dr.CSS »

Also you don't need to make any changes to the php.ini file, and read this...

http://docs.cmsmadesimple.org/configuration/pretty-url
User avatar
DaRichMan
Forum Members
Forum Members
Posts: 64
Joined: Mon Oct 20, 2008 11:31 am

Re: Pretty URL's

Post by DaRichMan »

Dr.CSS wrote:Also you don't need to make any changes to the php.ini file, and read this...

http://docs.cmsmadesimple.org/configuration/pretty-url
I followed theese steps but still getting a 404 error.

Copied the htaccess.txt from the doc folder to the root and renamed it to .htaccess

Added theede lines tot my config.php;
$config['url_rewriting'] = 'mod_rewrite';
$config['page_extension'] = '.html';

Made sure that in the head of my themplate {metadata} is there

But still a 404 error >:(
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: Pretty URL's

Post by Rolf »

Clear cache?
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
User avatar
DaRichMan
Forum Members
Forum Members
Posts: 64
Joined: Mon Oct 20, 2008 11:31 am

Re: Pretty URL's

Post by DaRichMan »

Yes but no luck
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: Pretty URL's

Post by Rolf »

Website in a subfolder at the server?
Are you sure the changed config file is at the server?
Hardcoded links?
You have an url to the site?
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
User avatar
DaRichMan
Forum Members
Forum Members
Posts: 64
Joined: Mon Oct 20, 2008 11:31 am

Re: Pretty URL's

Post by DaRichMan »

The website is not in a subfolder.
Deleted the old config.php fist and then uploaded the new one.
Hardcoded links?

URL is http://www.zoetebakselz.nl/
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1974
Joined: Mon Jan 29, 2007 4:47 pm

Re: Pretty URL's

Post by Jo Morg »

It seems that the

Code: Select all

<base href="http://www.zoetebakselz.nl/">
is missing from the < head > block. You should add a base tag or the {metadata} tag for the pretty URL's to work properly.
"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!
User avatar
DaRichMan
Forum Members
Forum Members
Posts: 64
Joined: Mon Oct 20, 2008 11:31 am

Re: Pretty URL's

Post by DaRichMan »

Sorry, still the same ???
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: Pretty URL's

Post by Rolf »

You are on Linux or Windoze server?
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
User avatar
paulbaker
Dev Team Member
Dev Team Member
Posts: 1465
Joined: Sat Apr 18, 2009 10:09 pm
Contact:

Re: Pretty URL's

Post by paulbaker »

trees wrote:Hi, I'm using CMSMS version 1.9.4.3, ............... Pretty URL's have been enabled in the php.ini file.
Have you undone the changes you made to php.ini? Have you upgraded to 1.11.7 now (latest)? Post your Site Admin -> System Information.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Pretty URL's

Post by Dr.CSS »

I just did pretty URLs on a 1.9.4.3 site in about 1 minute, set the 2 lines in config.php, copy htaccess.txt to root, rename .htaccess, badda boom badda bing, done...
User avatar
DaRichMan
Forum Members
Forum Members
Posts: 64
Joined: Mon Oct 20, 2008 11:31 am

Re: Pretty URL's

Post by DaRichMan »

Rolf wrote:You are on Linux or Windoze server?
On a Linux server
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Pretty URL's

Post by Dr.CSS »

This doesn't help, having 2 of these...

<base href="http://www.zoetebakselz.nl/">

<base href="http://www.zoetebakselz.nl/" />
User avatar
DaRichMan
Forum Members
Forum Members
Posts: 64
Joined: Mon Oct 20, 2008 11:31 am

Re: Pretty URL's

Post by DaRichMan »

Finally I got a solution. After searching all over the internet I contacted the hosting provider. They told me to login in to the Parallels portal and synchronize the htaccess. Never heard of this option before but voila, problem solved.

Lesson learned, contact the hosting provider fist ;)
Post Reply

Return to “The Lounge”