[Solved] Only frontpage loads with Pretty URLS's activated

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
User avatar
webform
Power Poster
Power Poster
Posts: 511
Joined: Sat Nov 25, 2006 3:39 pm

[Solved] Only frontpage loads with Pretty URLS's activated

Post by webform »

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?
Last edited by webform on Tue Aug 25, 2009 3:37 pm, edited 1 time in total.
Pierre M.

Re: Only frontpage loads with Pretty URLS's activated

Post by Pierre M. »

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.
User avatar
webform
Power Poster
Power Poster
Posts: 511
Joined: Sat Nov 25, 2006 3:39 pm

Re: Only frontpage loads with Pretty URLS's activated

Post by webform »

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!
User avatar
webform
Power Poster
Power Poster
Posts: 511
Joined: Sat Nov 25, 2006 3:39 pm

Re: Only frontpage loads with Pretty URLS's activated

Post by webform »

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]
User avatar
matterhornpat
Forum Members
Forum Members
Posts: 49
Joined: Wed Jul 11, 2007 7:55 pm

Re: [Solved] Only frontpage loads with Pretty URLS's activated

Post by matterhornpat »

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:

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]
#
User avatar
webform
Power Poster
Power Poster
Posts: 511
Joined: Sat Nov 25, 2006 3:39 pm

Re: [Solved] Only frontpage loads with Pretty URLS's activated

Post by webform »

I was the one with the problem, not Pierre  ;)

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

Return to “[locked] Installation, Setup and Upgrade”