我想将index.php重定向到主要网址或/ index到主要网址。我正在使用Zend Framework。
我目前的.htaccessZend .htaccess重定向到主要网址
#Options +FollowSymLinks
#Options -MultiViews
RewriteEngine On
Redirect 301 /index https://sim.ca/
RewriteBase/
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ – [NC,L]
RewriteRule ^.*$ /index.php [NC,L]
我想要做一些URL重写:如果有人类型https://sim.ca/index.php
或https://sim.ca/index
然后它会被重定向到https://sim.ca