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?
Problem with Search Engine Friendly links
-
- Forum Members
- Posts: 24
- Joined: Sun Jun 06, 2010 7:13 pm
-
- New Member
- Posts: 5
- Joined: Thu Jul 08, 2010 7:39 pm
Re: Problem with Search Engine Friendly links
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...
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...
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: Problem with Search Engine Friendly links
Please read the forum rules when posting.We use an old version of CMS.
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.
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.