.htaccess的生效时间是1小时到24小时。那么我们安装了一些插件,在启用这个文件后,有时忽略了这个时间,会发现系统出现500 Internal Server Error. 这时候会很焦急。
但其实最好的解决方法是:先不要管它,24小时之后再看看,会是什么情况。
我今天又碰到了这个情况,先是GG了很长时间,发现了这个帖子:
avatar7 wrote:Guys, everyone of us would love to enable the seo settings. So disabling them is not the solution. I found a solution for my case. i was also getting the "no input file specified" error and couldn't figure out what to do until a friend told me that .htaccess sometimes is delayed to work especially with Godaddy's servers which was the case with me. That's right, All you have to do is wait a bit and it will supposedly work. In my case, i checked back after 24 hrs!! since my site is not launched yet, and the Seo thing was working.
To Sum up : all you have to do is wait for few mins or even hours and hopefully the .htaccess will start working and you will have all the SEO settings working with no problem
## Can be commented out if causes errors, see notes above.
Options +FollowSymLinks
#
# mod_rewrite in use
RewriteEngine On
# Uncomment following line if your webserver’s URL
# is not directly related to physical file paths.
# Update Your Joomla! Directory (just / for root)
RewriteBase /
########## Begin - Joomla! core SEF Section
#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/index.php
RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$ [NC]
RewriteRule (.*) index.php
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
#
########## End - Joomla! core SEF Section
########## Begin - Rewrite rules to block out some common exploits
## If you experience problems on your site block out the operations listed below
## This attempts to block the most common type of exploit `attempts` to Joomla!
#
# Block out any script trying to set a mosConfig value through the URL
RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
# Block out any script trying to base64_encode crap to send via URL
RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
# Block out any script that includes a