Answer the question
In order to leave comments, you need to log in
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]
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question