Sorry, this is probably a very basic question, but I'm new to ModX and haven't been able to find an answer.

I am trying to get friendly urls working, but right now, all my urls are showing up like

http://localhost/modx/modx-2.2.13-pl/"http://localhost/modx/modx-2.2.13-pl/other.html

instead of the expected

http://localhost/modx/modx-2.2.13-pl/other.html

I probably don't have some system setting set correctly; any help would be greatly appreciated...

有帮助吗?

解决方案

Sounds like you've forgotten to add

<base href="[[++site_url]]" />

To your head.

At least that is the first thing that comes to mind.

其他提示

Sounds like you're generating the links with full path, are you doing them yourselves or is it Wayfinder or some snippet? And why do you have a " there in the middle of the string?

The basic idea is to use a base_href consisting of your root, http://localhost/modx/modx-2.2.13-pl/, and then construct links like [[~[[+idToPageYouWantToLink]]]].

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top