【发布时间】:2015-05-12 15:24:10
【问题描述】:
我正在尝试进行 url 重定向,但我拥有 .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>
Redirect 301 /research/report-listings/ http://example.com/research/research-portfolio/
# END WordPress
# BEGIN wtwp_cache
# END wtwp_cache
# BEGIN wtwp_security
# END wtwp_security
【问题讨论】:
标签: apache .htaccess mod-rewrite redirect