![]() |
|
Thread Tools |
#1
|
|||
|
|||
![]()
Hello VB.org staff & coders
can someone please guide me, how do i redirect an url in .htaccess file for example - i want to redirect url http://www.example.com/search.php to http://www.example.net/search.php (same url just domain name is different) *[i have searched query "how to redirect url in htaccess" before posting this thread but i didn't get anything useful] Thank you ![]() No members have liked this post.
|
#2
|
||||
|
||||
need more information.
just that ONE page (search.php)? or EVERYTHING .com to .net ?? No members have liked this post.
|
#3
|
|||
|
|||
everything is done but few left i.e search.php / calander.php etc.. so i guess i have do them one by one ?
No members have liked this post.
|
#4
|
||||
|
||||
not necessarily. if you're moving the whole SITE, then you can do it with two lines of code, but if it's only a select few pages, then yes, it will have to be done individually
No members have liked this post.
|
#5
|
|||
|
|||
whole SITE's url are redirecting to another already except few So, please guide me how do i do this ? The codes are ?
http://www.example.com/search.php to http://www.example.net/search.php (same url just domain name is different) --------------- Added 26 Jul 2016 at 10:19 --------------- also let know the code / procedure how to redirect the whole site to another * (for my knowledge). For now please let know how to redirect the mentioned URL . Thank You No members have liked this post.
|
#6
|
|||
|
|||
Whole site to another
Options +FollowSymLinks RewriteEngine on RewriteCond %{HTTP_HOST} ^(www\.)?old\.com RewriteRule (.*) http://www.new.com/$1 [R=301,L] The following members like this post: DCteen
|
#7
|
|||
|
|||
![]()
Originally Posted by KevinL
Thanks KevinL![]()
Noted ! Can you please let me know how do i redirect particular (Single) link as mentioned above ? No members have liked this post.
Last edited by DCteen; 26 Jul 2016 at 17:18. |
#8
|
|||
|
|||
Redirect 301 /oldfile.php http://example.net/newfile.php
That should work. But if you use the last one I wrote it should take care of all files and only need that one. No members have liked this post.
|
![]() |
«
Previous Thread
|
Next Thread
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 03:27.