我正在使用当前具有重写条件的现有 htaccess 文件,但我正在尝试添加其他条件(在遵循教程时),但我收到 500 内部服务器错误。
如果有人能告诉我我需要做什么来纠正这个问题,我将不胜感激,我再次感谢大家。
这是我的 htaccess 的样子;
#RewriteOptions inherit
RewriteEngine on
RewriteCond %{HTTP_HOST} ^DomainNameObscuredForSecurity$ [OR]
RewriteCond %{HTTP_HOST} ^DomainNameObscuredForSecurity$
RewriteRule ^/?$ "http\:\/\/DomainNameObscuredForSecurity" [R=301,L]
<THIS LINE IS NOT IN HTACCESS, IT'S JUST TO ILLUSTRATE THAT THE CODE BELOW IS WHAT I ADDED>
RewriteCond %(REQUEST_FILENAME) !=f
RewriteCond %(REQUEST_FILENAME) !=d
RewriteRule ^(.*)$ /somepage.xxx?=$xxx