0
我想从网站的url中删除'articles'和'artificial'文件夹,但是当我尝试将重写规则引入.htaccess文件时,我收到错误。url重写删除文件夹.htaccess
http://www.example.com/articles/artificial/are_string_beans_all_right_on_the_candida_diet.php
试图转换
http://www.example.com/are_string_beans_all_right_on_the_candida_diet.php
这里是我的.htaccess文件
DirectoryIndex index.php
AddDefaultCharset utf-8
RewriteCond %{HTTP_HOST} ^[^.]+\.[^.]+$
RewriteCond %{HTTPS}s ^on(s)|
RewriteRule^http%1://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Options +FollowSymLinks -MultiViews
# Turn mod_rewrite on
RewriteEngine On
RewriteBase/
RewriteRule ^index\.php/?$/[L,R=301,NC]
RewriteRule ^((?!articles/artificial).*)$ articles/artificial/$1 [NC,L]