Hi there,
in .htaccess, remove the trailing / from the rewrite base
i.e. rewriteBase /revo
This however, will not allow your site to display as www.yoursite.com/potatoes.html. Rather than I think the easiest way to get that would be to move the site to your root folder, yet be sure not to name any of your existing static files with the same alias as your MODX pages. MODX runs perfectly fine along side static .html files, and is in fact one of the methods I use to convert static sites to MODX.
There is a system setting in the FURL's section for automatically writing the alias, so you don't really need to add that manually if you turn that setting on. It will however take the pagetitle, but that can be altered after the save if you don't like it.
I pulled up a page (a "resource") to clone, entered potatoes into the Resource Alias field, appended a space and the word potatoes to the Page Title field, and clicked Duplicate.
What happens: I get a new resource, but it ignores the page title change and alias, and just clones the page adding a new resource number (this is no doubt MODX designed behavior, but confusing why a clone does not pick up what is currently in the fields.) If I then take that new resource, change its page Title and Resource Alias fields, and click Save, I get a change in the resource name. When I click View, I get a blank page, and the URL shown is http://www.mywebsite.com/revo/potatoes.html
So, the alias functionality appears to be working, but the page is not getting assembled properly. I tried the .htaccess file without the /revo/ subdirectory, but just get "Error establishing a database connection."
Can anyone suggest what may be wrong with my attempted MODX FURL functionality?
Ok, so as I'm sure you're realizing, what you got from MODX while duplicating the resource is exactly what it's supposed to do. It will duplicate the resource's values, but it does not duplicate the pagetitle or the alias, which makes sense because you don't actually want duplicate pagetitles or aliases. Rather, if you don't rename the duplicate, the pagetitle and alias will reflect "duplicate of blah blah" resource.
<base href="http://www.mywebsite.com/revo/" />
In your template, change this to <base href="[[++site_url]]" />. That is necessary for FURLS, and will work regardless of if the site is in the subfolder, root, or on a mars server.
I think once you get the rewrite base set in .htaccess, the base path in the template, and turn FURLs back on in system settings you'll see much better results with whatever template you're using.
[ed. note: frogabog last edited this post 9 years, 2 months ago.]