I have a weird problem; I have installed CMSMS 1.6.3 on a live server and activated Pretty URL's, but only the frontpage loads! I can see the URL change in the address bar when i click on a menu link but no page besides the frontpage loads.
It's an old problem i have on many sites on many different serverers and host's and versions of CMSMS. Activating mod_rewrite in the Config file and uploading the default .htaccess file coming with the CMSMS package, but to no avail :-\
Only a few times on some sites i have succeed, but i followed the "normal" procedure as described above, so i can't seem to find the clue to solve this!
Anyone has any idea what the problem could be?
[Solved] Only frontpage loads with Pretty URLS's activated
[Solved] Only frontpage loads with Pretty URLS's activated
Last edited by webform on Tue Aug 25, 2009 3:37 pm, edited 1 time in total.
Re: Only frontpage loads with Pretty URLS's activated
Hello,
pretty URLs work with CMSms on a lot of host/version combinations with standard instructions and samples. May be you should first run some non-CMSms rewriting tests and report them, then elaborate more on what you have tried so far with CMSms, following forums procedures (System Info etc).
Pierre M.
pretty URLs work with CMSms on a lot of host/version combinations with standard instructions and samples. May be you should first run some non-CMSms rewriting tests and report them, then elaborate more on what you have tried so far with CMSms, following forums procedures (System Info etc).
Pierre M.
Re: Only frontpage loads with Pretty URLS's activated
I will try to figure out how to do some rewriting tests.
One "funny" thing i've discovered; I'm working on a duplicate of the live site, which is placed in the root folder, and the test site is placed in a sub folder. If i have RewriteBase / in the htaccess file, then it actually loads the correct page, but in the original live site! If i change to RewriteBase /subfolder then it dies again!
So it kinda gives me a clue that mod_rewrite works on the server, but there is something in the htaccess file that need to be changed or added - The question now is what?
I will try to contact the host and se if they have an idea!
One "funny" thing i've discovered; I'm working on a duplicate of the live site, which is placed in the root folder, and the test site is placed in a sub folder. If i have RewriteBase / in the htaccess file, then it actually loads the correct page, but in the original live site! If i change to RewriteBase /subfolder then it dies again!
So it kinda gives me a clue that mod_rewrite works on the server, but there is something in the htaccess file that need to be changed or added - The question now is what?
I will try to contact the host and se if they have an idea!
Re: Only frontpage loads with Pretty URLS's activated
I've found out this content in the htaccess file seems to work instead of the default htaccess file:
Code: Select all
#php_flag magic_quotes_gpc Off
#php_flag register_globals Off
#php_flag session.use_trans_sid Off
# Make sure you have Options FollowSymLinks
# and Allow on
RewriteEngine On
#Rewrites page.shtml as index.php?page
RewriteCond %{REQUEST_FILENAME} !-f [NC]
RewriteCond %{REQUEST_FILENAME} !-d [NC]
RewriteRule ^(.+)$ index.php?page=$1 [QSA]
- matterhornpat
- Forum Members
- Posts: 49
- Joined: Wed Jul 11, 2007 7:55 pm
Re: [Solved] Only frontpage loads with Pretty URLS's activated
Can you paste in what you are using for your .htaccess? Or let us know if the version webform provided solves your problem?
Just for good measure I have included a version in which I use, with some additional lines to deal with canonical issues:
Just for good measure I have included a version in which I use, with some additional lines to deal with canonical issues:
Code: Select all
Options +FollowSymLinks
RewriteEngine on
RewriteBase /
RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com
RewriteRule (.*) http://www.yourdomain.com/$1 [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
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ index.php?page=$1 [QSA]
#
Re: [Solved] Only frontpage loads with Pretty URLS's activated
I was the one with the problem, not Pierre 
And yes the htaccess info i posted did solve the problem with this host!

And yes the htaccess info i posted did solve the problem with this host!