• Hello everybody,

    for a plugin I try to make a rewrite rule:

    RewriteRule reis/(.*)$ /belevingen/?product=$1 [R,L]

    I maintained to do so if I redirect the page (‘[R]’). Only, I want the URL: https://www.zentravel.nl/reis/(.*) to stay in the address bar. It gives a 404 if I make the rule:

    RewriteRule reis/(.*)$ /belevingen/?product=$1 [L]

    It doesn’t seem to work together with the standard pretty url feature of WordPress. You have any ideas how to fix this?

    The .htaccess now looks like this:

    <IfModule mod_rewrite.c>

    RewriteEngine On
    RewriteBase /

    RewriteRule reis/(.*)$ belevingen/?product=$1 [R,L]

    # BEGIN WordPress
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    # END WordPress

    </IfModule>

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter pieterg

    (@pieterg)

    I tried another approach. This is the redirect to the complete index.php url. I was hoping that this would fix the problem, but still I get a 404.

    RewriteRule reis/(.*)$ index.php?p=5006&product=$1 [NC,L]

    Thread Starter pieterg

    (@pieterg)

    anyone?

    Thread Starter pieterg

    (@pieterg)

    Still no luck in solving this problem. Is there anyone who can help me? Thanks in advance.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘mod rewrite’ is closed to new replies.