![]() |
|
|
|
|
|||||||
| PHP / MySQL Assistance We understand. Not all of you are experienced programmers, but some of you are highly skilled at coding. So we've set aside this forum so you can ask questions, and provide answers to the most commonly asked PHP / MySQL issues. |
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
hello,
I am in need of ReWriteCond and ReWriteRule for .htaccess file. here is the question : i simple want : http://m.readgujarati.com redirect to http://m.readgujarati.com/?page_id=2450 that means whoever types m.readgujarati.com will be redirected to one paticular page. I wrote : ReWriteCond %{HTTP_HOST} ^m\.readgujarati\.com$ ReWriteCond %{REQUEST_URI} / RewriteRule ^(.*)$ http://m.readgujarati.com/?page_id=2450 [R=302,L] is it correct ? please do some modification in the above for perefect redirect. from : mrugesh shah |
|
#2
|
||||
|
||||
|
__________________
Thanks, Greg HostICan Support Manager HostICan Tutorials HostICan Monthly Specials |
|
#3
|
|||
|
|||
|
it will not be helpful to me bcos I have NOT created folder for subdomain. so the only thing I can do with ReWriteCon for "internal redirect"
Options +FollowSymlinks RewriteEngine on RewriteCond %{HTTP_HOST} ^m\.readgujarati\.com RewriteRule ^$ ?page_id=2450 [R=301,L] i wrote this but it is creating me two problems. It is showing m.readgujarati.com/sahitya/?page_id=2450 where sahitya is my orginal domains folder. I have pointed my subdomain there. But I donot want to show that in addressbar. I just want to show : m.readgujarati.com/?page_id=2450 and another thing it redirects all internal pages of m.readgujarti.com I want only m.readgujarati.com to be redirected. not internal pages. please help |
![]() |
| Tags |
| htaccess, redirect, rules |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|