Answer the question
In order to leave comments, you need to log in
How to set up a redirect for these links to the corresponding ones without www?
Can you tell me how to set up a redirect for these urls to the corresponding ones without www?
- https://www.example.com/wp-content/uploads/2020/11...
- https://www.example.com/feed/?C=N;O=D
- https://www .example.com/feed/?C=M;O=A
- https://www.example.com/feed/
- https://www.example.com/feed/?C=M;O=D
Yes working code:
RewriteCond %{HTTP_HOST} ^w\-dprint\.ru$
RewriteRule ^plotternaya\-rezka$ https://w\-dprint.ru/? [L,R=301]
Answer the question
In order to leave comments, you need to log in
RewriteCond %{HTTP_HOST} ^www\.w\-dprint\.ru$
RewriteRule ^wp\-content/uploads/2020/11/Presentation\-GG\.pdf$ https://w\-dprint.ru/wp\-content/uploads/2020/11/Presentation\-GG.pdf? [L,R=301]
RewriteCond %{HTTP_HOST} ^www\.w\-dprint\.ru$
RewriteCond %{QUERY_STRING} (?:^|&)C\=N;O\=D(?:$|&)
RewriteRule ^feed/$ https://w\-dprint.ru/feed/?C=N;O=D [L,R=301]
RewriteCond %{HTTP_HOST} ^www\.w\-dprint\.ru$
RewriteCond %{QUERY_STRING} (?:^|&)C\=M;O\=A(?:$|&)
RewriteRule ^feed/$ https://w\-dprint.ru/feed/?C=M;O=A [L,R=301]
RewriteCond %{HTTP_HOST} ^www\.w\-dprint\.ru$
RewriteRule ^feed/$ https://w\-dprint.ru/feed/? [L,R=301]
RewriteCond %{HTTP_HOST} ^www\.w\-dprint\.ru$
RewriteCond %{QUERY_STRING} (?:^|&)C\=M;O\=D(?:$|&)
RewriteRule ^feed/$ https://w\-dprint.ru/feed/?C=M;O=D [L,R=301]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question