如何根据动态网址将apache重定向到启动式启动页面。部分网址始终是静态的。例如,http://buy.domain.com/product/product1-name-here
如果我想将http://buy.domain.com/product/ *中的所有内容重定向到某个页面,我该怎么办?
答案 0 :(得分:0)
只需在.htaccess文件中尝试这个简单的规则:
RewriteEngine on
Options +FollowSymlinks -MultiViews
RewriteRule ^product/.*$ /yourSplashPage? [R,L,NC]
答案 1 :(得分:0)
在.htaccess
文件中,创建一个Apache RewriteRule,以根据正则表达式有选择地选择链接。
RewriteRule ^product/.*$ /certainPage.html?