我的.htaccess文件如下所示:
############HTACCESS W4Y START############
Order Allow,Deny
Allow from all
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_HOST} ^fabiansquinobal.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.fabiansquinobal.com$
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php [NC,L]
</IfModule>
#############HTACCESS W4Y END#############
它位于我的Web服务器的根目录中,但对文件名没有影响。您能告诉我代码是否有效吗?