【发布时间】:2018-01-01 06:38:18
【问题描述】:
我正在使用 FallbackResource 将任何丢失的链接重定向到 /user.php,但它也会重定向根域(“incupe.com”)。它不应该重定向那个!如果明确输入“incupe.com/index.php”,它只会停止重定向。请帮忙!这是我的 .htaccess 文件:
# Do not remove this line or mod_rewrite rules and search engine friendly URLs will stop working
RewriteBase /
# Always use https for secure connections
# Replace 'www.example.com' with your domain name
# (as it appears on your SSL certificate)
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.incupe.com/$1 [R=301,L]
Options All -Indexes
FallbackResource /user.php
提前致谢!
【问题讨论】:
标签: php apache .htaccess redirect