Hi Andy,
Sorry but I’m not sure how to help you at this point. I have a very limited knowledge of MODx but also had FURLS problems initially. In your shoes, I would disable the FURL’s to keep the site functional and then try a new instalation of MODx on the same server with the sample data and see if the problem exists there and if so, solve it there without screwing up your real site in the process.
..Paul
Visit
MODx.mobi to read these forums on mobile devices.
Hi Paul,
Thanks for the help. I turned friendly URLs on on my development server and it doesn’t work there either. I’ll keep digging.
Andy
-
☆ A M B ☆
- 24,524 Posts
$modx->documentIdentifier works just fine without the arguments, since it is a property, not a function.
The function which sets it is getDocumentIdentifier($method). It is strictly an internal function, and should not be used. The $method is either "alias" or "ID", which is determined at parse time by the getDocumentMethod function. it’s based on the URL query string; if it’s "q=xx" then it’s using alias, if it’s "id=xx" then it’s using ID. Then you get all tangled up in using friendly aliases, .htaccess files and the like. Just remember that you want the property, not the function.
I’d take out the R=301 if you don’t want to see the rewritten URL.
I had a little different problem caused by using Apache 1.3(.31) under Win32. I had capital letters in the friendly URLs which Apache went and forced to lowercase. I finally got it worked out by adding a third rewrite condition:
RewriteCond %{REQUEST_URI} ^/[^/]*(.*)$
then changing the rewrite rule to:
RewriteRule ^(.*)$ index.php?q=%1 [L,QSA]
The condition assumes that MODx is installed in a subdirectory. The backreference to the condition provides the proper case for the alias. I don’t know if this behavior still exists in newer Apache versions.
Erik