在.htaccess中说错误404对象未找到

时间:2016-02-03 11:13:18

标签: apache .htaccess mod-rewrite

当我重定向到localhost / creatar时,它表示找不到对象。错误404

# Set the routes
RewriteEngine on
RewriteCond %{HTTP_HOST} ^localhost [NC]
RewriteRule ^(.*)$ http://localhost/creator/$1 [L,R=301]

#Set the sites route
RewriteRule ^sites([a-z/]*)$ /sites/$1 [L]

#Set the javascript route
RewriteRule ^javascript([a-z/]*)$ /javascript/$1 [L]

#Set the themes route
RewriteRule ^themes([a-z/]*)$ /themes/$1 [L]

#Set the images route
RewriteRule ^images([a-z/]*)$ /images/$1 [L]

#Set the html route
RewriteRule ^html([a-z\-/]*)$ index.php?route=$1 [QSA,L]

#Set the application route
RewriteRule ^([a-z\-/]*)$ index.php?route=$1 [QSA,L]

#Set the application default route
RewriteRule ^([a-z\-/]*)$ index.php [QSA,L]

# Default Index Page
DirectoryIndex index.php

# Protect htaccess file
<files .htaccess="">
order allow,deny
deny from all
</files>

0 个答案:

没有答案