Apache 如何更正重定向访问?

Apache 如何更正重定向访问?,apache,.htaccess,Apache,.htaccess,我有这一页: 我想在.htacces中创建重定向 这是我的代码: # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d Re

我有这一页:

我想在.htacces中创建重定向

这是我的代码:

# 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 / http://dizievents.ch/index.php/event/food-n-liquor-dizinvolta-2/
#if i put this code appears an error
#开始WordPress
重新启动发动机
重写基/
重写规则^index\.php$-[L]
重写cond%{REQUEST_FILENAME}-F
重写cond%{REQUEST_FILENAME}-D
重写规则/index.php[L]
重定向301/http://dizievents.ch/index.php/event/food-n-liquor-dizinvolta-2/
#如果我输入此代码,则会出现错误
我放置了一个图像,以便更好地理解我的错误

基本上,它进入无限循环,而(我认为)

我可以做什么来修复此错误


提前谢谢

你想用
重定向
行做什么?你想用
重定向
行做什么?
# 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 / http://dizievents.ch/index.php/event/food-n-liquor-dizinvolta-2/
#if i put this code appears an error