简体   繁体   English

我需要撤消Redirection Plugin完成的重定向URL

[英]I need to Undo my Redirection URL done by Redirection Plugin

I have used the REDIRECTION plugin and redirected the URL http://localhost/word/wordpress/product-category/sample/ to http://localhost/word/wordpress/sample/ . 我使用了REDIRECTION插件并将URL http:// localhost / word / wordpress / product-category / sample /重定向到http:// localhost / word / wordpress / sample / The first thing it redirects all my product category page to destination URL. 它首先将我的所有产品类别页面重定向到目标URL。 So, I need to undo this. 所以,我需要撤消这个。 But I couldn't find a solution for these. 但我无法找到解决方案。 Kindly Suggest me some ideas. 请建议我一些想法。

I had tried to remove the redirects line from .htaccess, but nothing happened. 我试图从.htaccess中删除重定向行,但什么都没发生。

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

END WordPress 结束WordPress

If I remove the redirect lines, it displays like, 如果我删除重定向行,它显示如,

Object not found! 找不到对象! The requested URL was not found on this server. 在此服务器上找不到请求的URL。 The link on the referring page seems to be wrong or outdated. 引用页面上的链接似乎是错误的或过时的。 Please inform the author of that page about the error. 请通知该页面的作者有关错误的信息。

If you think this is a server error, please contact the webmaster. 如果您认为这是服务器错误,请与网站管理员联系。

Error 404 错误404

localhost 本地主机

Apache/2.4.34 (Win32) OpenSSL/1.0.2o PHP/7.1.20 Apache / 2.4.34(Win32)OpenSSL / 1.0.2o PHP / 7.1.20

您可以停用REDIRECTION插件,您正在使用它将像以前一样工作。

Welcome to Stackoverflow! 欢迎来到Stackoverflow!

The redirect lines in .htaccess are not added by redirection plugin. 重定向插件不会添加.htaccess中的重定向行。 Those lines are added by Wordpress permalink to work. 这些行由Wordpress永久链接添加到工作。 You are using the postname slug in the permalink url of wordpress. 您正在wordpress的永久链接URL中使用postname slug。 So, if you remove those lines from .htaccess, the permalink stops working and you are getting this error. 因此,如果从.htaccess中删除这些行,则固定链接将停止工作并且您收到此错误。

For the incorrect redirection, you only need to remove the redirection rule from the redirection plugin settings page or you can disable the plugin. 对于不正确的重定向,您只需要从重定向插件设置页面中删除重定向规则,或者您可以禁用该插件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM