我是htaccess的新手,并没有重定向这些链接!
任何帮助都会让人感到惊讶! 比
<IfModule rewrite_module>
RewriteEngine On
Redirect 301 http://www.mmaemvendas.com/category/entrevistas http://www.mmaemvendas.com/entrevistas
Redirect 301 http://www.mmaemvendas.com/category/blog http://www.mmaemvendas.com/blog
Redirect 301 http://www.mmaemvendas.com/category/artigos http://www.mmaemvendas.com/artigos
Redirect 301 http://www.mmaemvendas.com/category/logistica http://www.mmaemvendas.com/logistica
Redirect 301 http://www.mmaemvendas.com/category/negociacao http://www.mmaemvendas.com/negociacao
RewriteBase /
RewriteCond %{QUERY_STRING} (^|\?|&)optimizemember_file_download\=.+ [OR]
RewriteCond %{QUERY_STRING} (^|\?|&)no-gzip\=1
RewriteRule .* - [E=no-gzip:1]
答案 0 :(得分:0)
如果要从htaccess重定向Wordpress中的页面,可以在htaccess文件的末尾添加重定向代码。您的默认htaccess文件现在看起来类似于
# 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
Redirect 301 /category/entrevistas http://www.mmaemvendas.com/entrevistas
Redirect 301 /category/blog http://www.mmaemvendas.com/blog
Redirect 301 /category/artigos http://www.mmaemvendas.com/artigos
Redirect 301 /category/logistica http://www.mmaemvendas.com/logistica
Redirect 301 /category/negociacao http://www.mmaemvendas.com/negociacao
答案 1 :(得分:-1)
Mahmod! 如果您使用的是WordPress CMS,那么您可以下载&amp;为301重定向安装任何免费插件。您可以在管理面板,菜单&#34;插件&#34;中执行此操作。在这里你会找到一个搜索。输入&#34; 301 redirect plugin&#34;等关键字。 &安培;定制它。 如果您愿意,我们会attractive wordpress support services. 祝你好运要开心! ;)