Quote from: exside at Sep 24, 2014, 04:54 AMare you using the standard .htaccess file shipped with modx? If not, have a look at how the URL rewriting is done there, I have no problem at all with request like in your example.
Sorry I was tired - I meant to put in here that yes, I am using the htaccess file that was shipped. I have tried modifying it in several different ways also. I can't understand why the default way doesn't work.
# The Friendly URLs part
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA,NC]
Again, I know very little about htaccess, but have tried to even split the parameters into folder names because I would be able to handle that way also. But that is the first time ever i have attempted to write a rule:
RewriteRule ^example/([^/]+)/(.*)/ index.php?q=$1&code=$2&cat=$3 [L,QSA]
(and I have tried all different types of regexp in there)
I don't even know if something like that would work or not though as the 2 extra parameters are only on 2 pages of the site.
Was thinking that should take it to example/254/9/
With the default htaccess, should the parameters be visible in the url?
Is there anything in ModX that would prevent the parameters from passing (freeze uri for example)?
I have no extensions (by creating a new blank content type) - would that cause issues?
[ed. note: itcassy last edited this post 12 years ago.]