如何将Example.Com/India/Content重定向到一些India / Index.Php?页 [英] How Can I Redirect Example.Com/India/Content To Some India/Index.Php? Page
问题描述
选项+ FollowSymlinks
RewriteEngine On
RewriteCond%{REQUEST_FILENAME}!-f
RewriteCond% {REQUEST_FILENAME}!-d
#RewriteRule ^(。*)$ profile.php?user = $ 1 [QSA,L]
#RewriteRule ^(。*)$ institute_frontend / index.php?user = $ 1 [QSA,L]
RewriteRule ^(。 *)$ institute_frontend / index.php?user = $ 1 [QSA,L]
此代码将任何内容指向institute_frontend / index.php页面
现在我想将example.com/india/cnt1/cnt2改为某些india / index.php?crse = $ 1 && cit = $ 2页
我该怎么做plz帮助我
Options +FollowSymlinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
#RewriteRule ^(.*)$ profile.php?user=$1 [QSA,L]
#RewriteRule ^(.*)$ institute_frontend/index.php?user=$1 [QSA,L]
RewriteRule ^(.*)$ institute_frontend/index.php?user=$1 [QSA,L]
This code is directing any thing to institute_frontend/index.php page
Now i want example.com/india/cnt1/cnt2 to some india/index.php?crse=$1&&cit=$2 page
How can i do this plz help me
推荐答案
profile.php?user =
profile.php?user=
1 [QSA ,L]
#RewriteRule ^(。*)
1 [QSA,L]
#RewriteRule ^(.*)
institute_frontend / index.php?user =
institute_frontend/index.php?user=
这篇关于如何将Example.Com/India/Content重定向到一些India / Index.Php?页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!