dongtan6543 2015-07-07 15:46
浏览 52

.htaccess不支持1&1托管,正在本地工作

It gives 500 Internal Server Error. I'm wondering why this code isn't working since it fine in local. I think it has something to do with 1and1 hosting. Here is my .htaccess file:

Options -Indexes

<IfModule mod_rewrite.c> 
RewriteEngine on

RewriteCond %{REQUEST_URI} !^public
RewriteRule ^(.*)$ frontend/web/$1 [L] 
</IfModule>

# Deny accessing below extensions
<Files ~ "(.json|.lock|.git)">  
Order allow,deny
Deny from all
</Files>

# Deny accessing dot files
RewriteRule (^\.|/\.) - [F]

How can solve the problem?

  • 写回答

0条回答 默认 最新

    报告相同问题?