htaccess with pretty url

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
milagro
Forum Members
Forum Members
Posts: 41
Joined: Tue Mar 13, 2007 8:33 pm

htaccess with pretty url

Post by milagro »

Hello I have a problem with pretty url after I had edit my .htaccess file and set the subdirectory RewriteBase to my cmsmsdirectory. The url of my news module doesn't display correctly  http://www.domein.com/news/2/15/article

I have made this edit becours I had a problem with a external script see this old topic
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: htaccess with pretty url

Post by Rolf »

Hi Milagro,

Try to use the default htaccess.txt out of the /doc folder.
Copy it to the website root and rename it to .htaccess
Change RewriteBase /yourcmsmsdirectory again
And look again...

Got a link?

Rolf  :)
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
milagro
Forum Members
Forum Members
Posts: 41
Joined: Tue Mar 13, 2007 8:33 pm

Re: htaccess with pretty url

Post by milagro »

I tried to use the default htaccess.txt out of the /doc folder, but now the pretty URL doesn't work
http://www.domein.com/news/2/15/article
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: htaccess with pretty url

Post by Rolf »

Rolf wrote: Got a link?
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: htaccess with pretty url

Post by Dr.CSS »

Do you have $config['use_hierarchy'] = true;  this is needed for many modules to produce pretty URLs, is why they set it to true as default and took out the option a while ago, but it raised a stink for those trying to do URL tricks for SEO which is going to be way better in 1.9...
Post Reply

Return to “CMSMS Core”