mod_rewrite and Earthlink

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
hexdj
Power Poster
Power Poster
Posts: 415
Joined: Sat Mar 24, 2007 8:28 am

mod_rewrite and Earthlink

Post by hexdj »

I was just told by Earthlink that I can't have mod_rewrite turned on for my site. So this means that I can't have pretty URLS in my site. Unless someone else can tell me if there's a workaround for it???

This is just one of the many MANY reasons why you should stay away from Earthlink.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: mod_rewrite and Earthlink

Post by Dr.CSS »

Have you tried the internal Pretty URL settings instead?...
hexdj
Power Poster
Power Poster
Posts: 415
Joined: Sat Mar 24, 2007 8:28 am

Re: mod_rewrite and Earthlink

Post by hexdj »

I followed the procedure described in here:

http://wiki.cmsmadesimple.org/index.php ... retty_URLs

Which involves changes in htaccess and config.php

Is there any other method for just internal pretty urls?
alby

Re: mod_rewrite and Earthlink

Post by alby »

hexdj wrote: Is there any other method for just internal pretty urls?
Try this in config.php for internal pretty urls only (http://www.example.com/index.php/dir/page.html):

Code: Select all

$config['assume_mod_rewrite'] = false;

$config['internal_pretty_urls'] = true;

$config['use_hierarchy'] = true;

$config['page_extension'] = '.html';
Alby
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: mod_rewrite and Earthlink

Post by Dr.CSS »

Change .htaccess to htaccess.txt... I think this is mostly to get rid of index.php in the string...

Then in config.php... this will give you pretty URLs for news items like multiintech.com/index.php/news/11/15.html

#------------
#URL Settings
#------------

#Show mod_rewrite URLs in the menu? You must enable 'use_hierarchy' for this to work for modules
$config['assume_mod_rewrite'] = false;

#Extension to use if you're using mod_rewrite for pretty URLs.
$config['page_extension'] = '.html ';

#If you don't use mod_rewrite, then would you like to use the built-in
#pretty url mechanism?  This will not work with IIS and the {metadata} tag
#should be in all of your templates before enabling.
$config['internal_pretty_urls'] = true;

#If you're using the internal pretty url mechanism or mod_rewrite, would you like to
#show urls in their hierarchy?  (ex. http://www.mysite.com/parent/parent/childpage)
$config['use_hierarchy'] = true;

#If using none of the above options, what should we be using for the query string
#variable?  (ex. http://www.mysite.com/index.php?page=somecontent)
$config['query_var'] = '.html';
Post Reply

Return to “CMSMS Core”