Do not use the prefix index.php?page=; that information is from the author of that wiki content and only applies if you do not have mod_rewrite/.htaccess capabilities (not even sure that method works at all anymore in fact).
I’ve switched on FURL’s on my site, following instructions on the wiki. But now any link I click on just goes to my home page. The links change, i.e. I changed it so it looks like /index.php?page=<alias>.html
But I’m not sure if I still need to do stuff to the .htaccess file.
#Options +FollowSymlinks
RewriteEngine On
RewriteBase /
# Rewrite www.domain.com -> domain.com -- used with SEO Strict URLs plugin
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} !^mydomain\.com [NC]
RewriteRule (.*) http://mydomain.com/$1 [R=301,L,NC]
# The Friendly URLs part
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?q=$1 [L,QSA,NC]
Forgive me if this question has been asked elsewhere. But I couldn’t find it in this thread or anywhere else.
The pages on my site all use the convention: mydomain.com/alias_of_this_page
I am using FURLs with all lower case aliases. Everything works as I’m intending except when visitors type alias_of_this_page with one or more upper case letters. I have the NC option on the rewriterule, but that does not force ALIAS_of_this_page to alias_of_this_page. It just ignores the case and passes through whatever the visitor typed. When that string gets passed through with upper case letters, Modx doesn’t locate the page and sends the visitor to the default page.
Any help on how to force all the characters to lower so that the matching alias can be found? I tried a method using the int:tolower function but I get nothing but 500 errors anytime I try to include that in my .htaccess file.
Here is my .htaccess file as it currently exists.
#Options +FollowSymlinks RewriteEngine On RewriteBase / # Rewrite www.domain.com -> domain.com -- used with SEO Strict URLs plugin RewriteCond %{HTTP_HOST} . RewriteCond %{HTTP_HOST} !^mydomain\.com [NC] RewriteRule (.*) http://mydomain.com/$1 [R=301,L,NC] # The Friendly URLs part RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ /index.php?q=$1 [L,QSA,NC]
Thanks in advance!!
This discussion is closed to further replies. Keep calm and carry on.