WordPress.org

Ready to get started?Download WordPress

Forums

Can anyone explain why this does not work? (1 post)

  1. sac1978
    Member
    Posted 3 years ago #

    Hi,

    I have this in my .htaccess file

    RewriteRule ^morepages/([^/]+).html /index.php?s=$1 [QSA,L]

    with the intention that domain.com/morepages/keyword.html redirects to domain.com/index.php?s=keyword

    If I change the rule so it goes through mod_proxy, by changeing L to P as follows RewriteRule ^morepages/([^/]+).html /index.php?s=$1 [QSA,P] it works.

    The issue with that is every request is going through my server twice.

    Any ideas how to get the top version working?

    Stephen.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.