Problems, need help? Have a tip or advice? Post it here.
3 posts Page 1 of 1
Hi
I've enabled the pretty url functionality on my website, following the tutorial in the documentation.
Everything went fine, from the test_rewrite till the absolute linking of css file.

The links are showing fine individually, but there's a problem when I start navigating.
When I'm for example on a page "mywebpage.com/testfolder/test.html" and I click at my home button, which is linked to index.php, the page can not be found because the url is build up like this: "mywebpage.com/testfolder/index.php".

It should be ofcourse like this: "mywebpage.com/index.php"

It seems the url is "stuck" in the previous folder.

As attachment an example of the problem on my actual website http://www.cocktailsopmensenmaat.be

Thanks for looking into it, I probably missed something..

Attachments

Hi,

I had a look at the site and what I could see you are still using relative URLs e.g.
href="index.php"
href="filmpjes.php"

Those are bound to break once prettyURLs are turned on.

Please convert all links to absolute and that would rectify the situation.
Since the links are those of your Couch templates, the preferred way would be to use the cms:link tag as follows
Code: Select all
<a href="<cms:link 'index.php' />" >
<a href="<cms:link 'filmpjes.php' />" >

Hope this helps.
Thanks again for this super fast support!
Problem solved 8-)
3 posts Page 1 of 1