T
T
TANK_IST2019-07-01 23:43:08
Apache HTTP Server
TANK_IST, 2019-07-01 23:43:08

How to prevent RewriteRule from rewriting URL?

There is such htaccess

<IfModule mod_rewrite.c>
Options +FollowSymLinks -MultiViews
RewriteEngine On
RewriteBase /
RewriteRule ^nos-locations/(.+)/?$ /nos-locations?url=$1 [R=302,L]
</IfModule>

It changes the url in the browser from /nos-locations/animaux/398 to /nos-locations/?url=animaux/398 How can I make it not change the url?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaly Mironov, 2019-07-03
@nor1m

R=302 This is a 302 redirect and redirects to another page

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question