Page 1 of 1

Problem with Search Engine Friendly links

Posted: Thu Jul 08, 2010 9:23 pm
by TwittersPVFC
Hi all,

I'm currently on 1.2.4 and I'm having problems getting the friendly links to work.  I've followed all the steps but it doesn't seem to work.

In my .htaccess code I have the following:
RewriteEngine On

# Might be needed in a subdirectory
#RewriteBase /

# URL Filtering helps stop some hack attempts
#IF the URI contains a "http:"
RewriteCond %{QUERY_STRING} http\: [OR]
#OR if the URI contains a "["
RewriteCond %{QUERY_STRING} \[ [OR]
#OR if the URI contains a "]"
RewriteCond %{QUERY_STRING} \] [OR]
#OR if the URI contains a ""
RewriteCond %{QUERY_STRING} (\|%3E) [NC,OR]
#OR script trying to set a PHP GLOBALS variable via URL
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
#OR any script trying to modify a _REQUEST variable via URL
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
RewriteRule ^.*$ - [F,L]
# END Filtering

# CMSMS Rewriting
# Set assume mod_rewrite to true in config.php and clear CMSMS cache
RewriteCond %{REQUEST_FILENAME} !-f [NC]
RewriteCond %{REQUEST_FILENAME} !-d [NC]
RewriteRule ^/content/(.*)$ index.php?page=$1 [QSA]


In my config.php file, I've added /content/ at the end of the root url to add the content at the end of the link for the rewrite rule.  I've also set in the file the following parameters to true:
assume_mod_rewrite
use_hierarchy

However, when I try to load the website, I lose all my templates and don't get them back until I turn these options off. 

Any ideas?

Re: Problem with Search Engine Friendly links

Posted: Thu Jul 08, 2010 9:33 pm
by MIDIthrough
I'm wondering about this too.

Our site is having this issue with internal "contact us" links.  We use an old version of CMS.
The next thing I was going to try is, from Pages > content > source, replacing the php generated code for those links with standard HTML mailto tags.  I haven't tried it yet to see if the platform will accept mailto tags, but it's next on the list.  I don't think it's going to accept mailto tags, but I'll try anyway - unless else replies with a different solution before I get there...

Re: Problem with Search Engine Friendly links

Posted: Sat Jul 10, 2010 10:15 pm
by calguy1000
We use an old version of CMS.
Please read the forum rules when posting.
We only support the latest two releases of CMSMS.