• Hi !

    I’m working on a website for a client (I have no experience, but I sort of managed to make it this far): www.vraagnaarkunst.nl/2017

    It is using the Quartz Theme by LoopThemes

    I had troubles with the My Account page. For example, being logged in and trying to go to “Edit Adress” just led me to the My Account page again.

    I had a friend (builder/coder) of mine look at it and he saw the trailing slash was being removed. He added it/something in the .htaccess file and it worked.

    Now it doesn’t work anymore. Something is overwriting it and I don’t know what it is. Also, I saw that once inside the My Account > Orders page, when I want to click on “view” (to view a previous order) it has the same problem. Manually editing the code and adding the slash at the end brings me to the right page.

    I already tried to fix it with a plugin, and tried several things in .htaccess, but it doesn’t work. Does anyone understand how to fix this?

    Thanks in advance.

Viewing 1 replies (of 1 total)
  • Hello,

    You can add a trailing slash by adding the following into your .htaccess file.

    RewriteCond %{REQUEST_URI} !(/$|\.) 
    RewriteRule (.*) %{REQUEST_URI}/ [R=301,L]

    Add this to the very bottom of the file.

    Cheers,

    Liam

Viewing 1 replies (of 1 total)

The topic ‘Trailing slash’ is closed to new replies.