如何解决.htaccess与服务器配置冲突?

时间:2017-10-29 07:43:15

标签: apache .htaccess mod-rewrite

脚本已成功安装但在安装后点击链接时包括登录/注册链接

Internal Server Error

The server encountered an internal error or misconfiguration and was unable 
to complete your request.

下面是我的.htaccess设置:

AddType video/mp4 .mp4

 #Options -MultiViews 

 #Options -Indexes

<IfModule mod_rewrite.c>
    ## Uncomment (remove # ONLY NOT ##) line below if installed in folder and add folder name after /
    ## Example: Script is installed in /public_html/folder/ then it should be: Rewritebase /folder/
    ## Then the files below should be (add slash to all): /index.php?action=$1
    ## Uncomment the code below to Use PHP 5.4
    # AddHandler application/x-httpd-php54 .php

    RewriteEngine On

    ## Uncomment the following line to use the multi-domain feature
    # RewriteCond %{HTTP_HOST} ^yourseconddomain\.com$ [NC]
    # RewriteRule ^(.*)$ http://yourfirstdomain.com/$1 [R=301,L]

    #Rewritebase /
    ## Admin Panel
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^admin/(.*)?$ admin/index.php?a=$1 [QSA,NC,L]

    ## Application Handler
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)?$ index.php?a=$1  [QSA,NC,L]
</IfModule>

## Error 404 ##
ErrorDocument 404 /index.php?a=404

注意:我无法访问apache我的网站安装在1and1.com

0 个答案:

没有答案