Home >Web Front-end >HTML Tutorial >How to write this regular expression? _html/css_WEB-ITnose
Visit /seoall/zhidao.baidu.com/
Actually, you are visiting /gongju/seo/alls.php?domain=zhidao.baidu.com
This httpd How to write .ini
RewriteRule ^/seoall/zhidao.baidu.com/$ /gongju/seo/alls .php?domain=zhidao.baidu.com
Let me try
RewriteRule ^/seoall/zhidao.baidu.com/$ /gongju/seo/alls.php?domain =zhidao.baidu.com
1,
It is best to save it in a .htaccess file.
RewriteRule ^/seoall/zhidao.baidu.com/$ /gongju/seo/alls.php?domain=zhidao.baidu.com
Let me try it
Success zhidao.baidu.com is variable
Success code: RewriteRule ^/seoall/(.*)/$ /gongju/seo/alls.php?domain=$1
Thank you You