Jump to content
Sign in to follow this  
WQP

301 редирект

Recommended Posts

# Редирект
Redirect 301 /patrick-j-adams http://suits-online.ru/actors/patrick-adams
Redirect 301 /watch-online/season-1 http://suits-online.ru/1-season-online
Redirect 301 /watch-online/season-2 http://suits-online.ru/2-season-online
Redirect 301 /watch-online/season-3 http://suits-online.ru/3-season-online
Redirect 301 /about-the-series http://suits-online.ru/fors-mazhory-o-seriale

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

Объясните почему не срабатывает переход?

Share this post


Link to post
Share on other sites

Кстати, для ВП есть плагин Quick Page Post Redirect, у него есть опция для редиректа отдельных записей и страниц

Share this post


Link to post
Share on other sites

А попробуйте вот так:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^patrick-j-adams$ http://suits-online.ru/actors/patrick-adams [L,R=301]
RewriteRule ^watch-online/season-1$ http://suits-online.ru/1-season-online [L,R=301]
RewriteRule ^watch-online/season-2$ http://suits-online.ru/2-season-online [L,R=301]
RewriteRule ^watch-online/season-3$ http://suits-online.ru/3-season-online [L,R=301]
RewriteRule ^about-the-series$ http://suits-online.ru/fors-mazhory-o-seriale [L,R=301]
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

В целом, эффект аналогичный должен быть.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...