如何将Example.Com/India/Content重定向到一些India / Index.Php?页 [英] How Can I Redirect Example.Com/India/Content To Some India/Index.Php? Page

查看:78
本文介绍了如何将Example.Com/India/Content重定向到一些India / Index.Php?页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

选项+ 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屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆