• Resolved mfiguerasma

    (@mfiguerasma)


    I’ve got an installation with some friendly urls for a couple of the content types displayed in my site like:
    https://baseUrl/path1/path2/nameOfPage.html goes to
    https://baseUrl/path3/myPage.php

    The rule is:
    RewriteRule ^path1/path2/([0-9]+)\/([0-9]+)\/([a-zA-Z0-9_-]+)\.html$ /path3/myPage.php?var1=$1&var2=$2 [QSA,L]

    While navigating, if I access to the final url (/path3/myPage.php) everything works fine, but if I access to the friendly url (/path1/path2/nameOfPage.php) I lose my WP session and I need to login again.

    Does anybody know why is it happening? The domain is the same, so I assume the session cookie might work fine.

    Any help will be appreciated!

Viewing 1 replies (of 1 total)
  • Thread Starter mfiguerasma

    (@mfiguerasma)

    Done, I found a second htaccess file inside path1 that overwrote the rules and changed the base domain, so it didn’t work.
    Now, once this htaccess updated, everything works fine.

Viewing 1 replies (of 1 total)
  • The topic ‘A rewrite rule kills the session’ is closed to new replies.