0
我在我的.htaccess文件中添加了一些不好的代碼,然後我的網站甚至無法加載。所以我回到了以前的版本,但是該網站仍然無法加載,我不知道這是否與緩存有關(我順便清空了它),但我希望能夠測試我的網站再次。但目前的瀏覽器不會去那個網站。嘗試在不同的計算機上的網站,它現在正在工作。修復壞的.htaccess文件後,網站仍然無法加載
Options +FollowSymLinks -MultiViews
rewriteengine on
RewriteBase/
RewriteCond %{HTTPS} !=on
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteRule^http://%1%{REQUEST_URI} [R=301,L]
RewriteRule ^blog/(.*)$ blog.php?article=$1 [QSA,L]
是當前的.htaccess。
Options +FollowSymLinks -MultiViews
rewriteengine on
RewriteBase/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(.*)$ $1.php [NC,L]
## remove ugly part of url for blog.php
RewriteRule^http://%1%{REQUEST_URI} [R=301,L]
RewriteRule ^blog/(.*)$ blog.php?article=$1 [QSA,L]
這是打破了它
感謝徹底清空.htaccess文件修復它。 – kqlambert