Z
Z
zaxvat4ik2016-11-18 10:29:27
htaccess
zaxvat4ik, 2016-11-18 10:29:27

301 redirect mask in htaccess?

Good
afternoon The site on Joomla was hacked and doorways were flooded into the folders at the root.
All this was included in the PS index.
The pages of the doorway have been gone for a long time for new VMs, they weigh like a 404 error
.
I did not find a ready-made solution in the PS.
The folder name can be used as a mask.
URL example domen.ru/informatika/id-number308.html

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
zaxvat4ik, 2016-11-24
@zaxvat4ik

Found a solution

RewriteCond %{REQUEST_URI}?%{QUERY_STRING} "\/informatika\/.*?$"
RewriteRule ^(.*)$ /glavnaya/files? [R=301,L]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question