[Solved] Can't get pretty URLs or modrewrite to work on GoDaddy
Posted: Sun Dec 03, 2006 3:16 pm
I've implemented quite a few CMS MS sites using 1and1 shared hosting and the simple "true" switch in config.php for pretty URLs works great.
However, I'm having to use GoDaddy shared (paid) hosting accounts and no matter what I do, I can't get pretty URLs or a mod rewrite solution to work. I know this issue probably isn't that complex for someone, so please, can someone help me out or point me in the right direction?
I'm using CMS MS 1.0.2 on GoDaddy Shared Linux accounts.
When I switch the pretty URL option in config.php I get 404 errors on all but the front page. Same result when I've tried all the other suggestions I've found for modifying .htaccess and config.php that I found in these places:
Instructions (don't work for me):
http://wiki.cmsmadesimple.org/index.php ... retty_URLs
A post on this same issue using GoDaddy (Solution doesn't work for me)
http://forum.cmsmadesimple.org/index.ph ... l#msg31850
Here are the latest settings I've tried that don't work:
Config.php
---------------------------------------------------------
#------------
#URL Settings
#------------
#Show mod_rewrite URLs in the menu? You must enable 'use_hierarchy' for this to work for modules
$config['assume_mod_rewrite'] = true;
#Extension to use if you're using mod_rewrite for pretty URLs.
$config['page_extension'] = '/';
#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'] = false;
#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'] = 'page';
-----------------------------------------
.htaccess
--------------------------
Options +FollowSymLinks
RewriteEngine on
RewriteBase /
# 301 Redirect all requests that don't contain a dot or trailing slash to
# include a trailing slash
RewriteCond %{REQUEST_URI} !/$
RewriteCond %{REQUEST_URI} !\.
RewriteRule ^(.*) %{REQUEST_URI}/ [R=301,L]
# 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 [NC]
RewriteCond %{REQUEST_FILENAME} !-d [NC]
RewriteRule ^(.+)$ index.php?page=$1 [QSA]
----------------------------------
However, I'm having to use GoDaddy shared (paid) hosting accounts and no matter what I do, I can't get pretty URLs or a mod rewrite solution to work. I know this issue probably isn't that complex for someone, so please, can someone help me out or point me in the right direction?
I'm using CMS MS 1.0.2 on GoDaddy Shared Linux accounts.
When I switch the pretty URL option in config.php I get 404 errors on all but the front page. Same result when I've tried all the other suggestions I've found for modifying .htaccess and config.php that I found in these places:
Instructions (don't work for me):
http://wiki.cmsmadesimple.org/index.php ... retty_URLs
A post on this same issue using GoDaddy (Solution doesn't work for me)
http://forum.cmsmadesimple.org/index.ph ... l#msg31850
Here are the latest settings I've tried that don't work:
Config.php
---------------------------------------------------------
#------------
#URL Settings
#------------
#Show mod_rewrite URLs in the menu? You must enable 'use_hierarchy' for this to work for modules
$config['assume_mod_rewrite'] = true;
#Extension to use if you're using mod_rewrite for pretty URLs.
$config['page_extension'] = '/';
#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'] = false;
#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'] = 'page';
-----------------------------------------
.htaccess
--------------------------
Options +FollowSymLinks
RewriteEngine on
RewriteBase /
# 301 Redirect all requests that don't contain a dot or trailing slash to
# include a trailing slash
RewriteCond %{REQUEST_URI} !/$
RewriteCond %{REQUEST_URI} !\.
RewriteRule ^(.*) %{REQUEST_URI}/ [R=301,L]
# 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 [NC]
RewriteCond %{REQUEST_FILENAME} !-d [NC]
RewriteRule ^(.+)$ index.php?page=$1 [QSA]
----------------------------------