mod rewrite
-
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>
- The topic ‘mod rewrite’ is closed to new replies.