Problem with Search Engine Friendly links
Posted: Thu Jul 08, 2010 9:23 pm
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?
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?