I started a test site w/o friendly URL’s (because of 0-day newbie ignorance) and entered some pages. NB: their aliases must exactly mimic the names of old site static links, to avoid links rotting. Menu is statically hardcoded into template.
Then i turned on friendly URL’s with empty prefix and ’.html’ posfix, and cut ’.html’ off my pages aliases.
And many pages gone 404 (MODx error page w/ template), while two other do show OK !
I erased one page and re-created it anew - no effect ! I inspected hardcoded menu - no stray symbols, only ’_’ could be in question, but one of "good" pages has it also !
Note: the pages fail to show only by aliases, by number they all do show - but this is NOT what i need.
System data, all from PHPinfo()
Server:
PHP Version 4.3.6
OS: Windows NT 5.0 build 2195 (Windows 2000)
httpd: Apache/1.3.27 (Win32) PHP/4.3.6
Apache Release / API Version : 10324100 / 19990320
MySQL Client API version: 3.23.49
Client: same box
Browsers:
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7) Gecko/20040616
IE 6.0.2800.1106
Hi,
Did you modify the ht.access files for your specific installation, and rename it to .htaccess ?
Else, friendly urls wont’ work ;-)
Greetz,
Remon
-
MODX Staff
- 12,272 Posts
Are you using Friendly Alias Paths?
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
-
MODX Staff
- 12,272 Posts
Turn off friendly alias paths, then! lol (it’s always been flakey to me in the way it works... you get it to work by setting a base href= in the header).
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
Sorry, i was stupid like a cork - problem solved, then turning on paths i forgot what my wrong docs were under folder.
BUT... My old site has flat structure - almost (NB!) everything in a root directory, about a hundred pages or more.
How can i organize docs in CMS tree and still have different tree in URL’s ?
Disable friendly paths and write folders to aliases as needed ?