D
D
Drm2015-12-24 12:43:26
Apache HTTP Server
Drm, 2015-12-24 12:43:26

How to make such a redirect using the Apache configuration?

Good day, I am making the Ajax site friendly for search engines.
Through .htaccess I'm trying to make the url of this type:
https://toster.ru/?_escaped_fragment_=/about/
Turn into this:
https://toster.ru/snapshot/about/
Wise-wise, and got this config:

RewriteEngine On
Options +FollowSymLinks
RewriteCond %{REQUEST_URI}  ^/$
RewriteCond %{QUERY_STRING} ^_escaped_fragment_=/?(.*)$
RewriteRule ^(.*)$ /snapshots/%1? [NC,L]

But it doesn't work

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey, 2015-12-24
@Drm

[NC,R=301,L]
to the last line

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question