Problem with Search Engine Friendly links

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
TwittersPVFC
Forum Members
Forum Members
Posts: 24
Joined: Sun Jun 06, 2010 7:13 pm

Problem with Search Engine Friendly links

Post 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?
MIDIthrough
New Member
New Member
Posts: 5
Joined: Thu Jul 08, 2010 7:39 pm

Re: Problem with Search Engine Friendly links

Post 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...
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Problem with Search Engine Friendly links

Post 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.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Post Reply

Return to “CMSMS Core”