What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » Help with website redirection

Pages: (2): « First [ 1 ] 2 » Last »
Help with website redirection
Author: Message:
Felu
Veteran Member
*****


Posts: 2223
Reputation: 72
30 / Male / Flag
Joined: Apr 2006
Status: Away
O.P. Help with website redirection
I want to redirect http://mno.def.com/xyz to http://abc.def.com/xyz . I tried google but i didn't find something useful.
Anybody knows how to do it?

Help will be appreciated and thanks in advance.
09-24-2006 12:09 PM
Profile E-Mail PM Web Find Quote Report
-dt-
Scripting Contest Winner
*****

Avatar
;o

Posts: 1819
Reputation: 74
36 / Male / Flag
Joined: Mar 2004
RE: Help with website redirection
http://www.google.com/search?q=.htaccess+redirect...l&client=firefox-a
[Image: dt2.0v2.png]      Happy Birthday, WDZ
09-24-2006 12:18 PM
Profile PM Web Find Quote Report
Sunshine
Elite Member
*****

Avatar

Posts: 5141
Reputation: 122
– / Female / Flag
Joined: Mar 2004
Status: Away
RE: Help with website redirection
Example:

Between the header tags on index page:
<meta http-equiv="refresh" content="10; URL=http://sunshineweb.org/">

in the body:

This website has moved to http://www.sunshineweb.org<br>
If your browser does not automatically redirect you in 10 seconds<br>
click <a href="http://www.sunshineweb.org">here</a> to go to the new site.



Simply replace the urls you wish to redirect your site too. You can change the redirection time too, for that you change the 10 after content= in the meta tag.
[Image: 25dr3o9]
09-24-2006 01:28 PM
Profile E-Mail PM Web Find Quote Report
Felu
Veteran Member
*****


Posts: 2223
Reputation: 72
30 / Male / Flag
Joined: Apr 2006
Status: Away
O.P. RE: Help with website redirection
I think you didn't get what i meant. I meant any value of xyz could be used [Image: msn_tongue.gif].

quote:
Originally posted by Sunshine
<meta http-equiv="refresh" content="10; URL=http://sunshineweb.org/">
<meta http-equiv="refresh" content="10" URL=http://sunshineweb.org/"> ;)

This post was edited on 09-24-2006 at 01:42 PM by Felu.
09-24-2006 01:39 PM
Profile E-Mail PM Web Find Quote Report
Sunshine
Elite Member
*****

Avatar

Posts: 5141
Reputation: 122
– / Female / Flag
Joined: Mar 2004
Status: Away
RE: Help with website redirection
quote:
Originally posted by -!Felu!-
I think you didn't get what i meant. I meant any value of xyz could be used [Image: msn_tongue.gif].
Then i don't get you...a website has an addy not a random xyz...
Anyways the redirect i posted you can put on any page you wish to redirect, but normally only the entrypage will do to redirect the whole site since ppl tend to see that page first. Just make sure you put in the correct urls.
quote:
quote:
Originally posted by Sunshine
<meta http-equiv="refresh" content="10; URL=http://sunshineweb.org/">
<meta http-equiv="refresh" content="10" URL=http://sunshineweb.org/"> ;)
no no, the 10; belongs within the same quotes as the url (its all under the definition content=)

This post was edited on 09-24-2006 at 01:47 PM by Sunshine.
[Image: 25dr3o9]
09-24-2006 01:44 PM
Profile E-Mail PM Web Find Quote Report
alexp2_ad
Scripting Contest Winner
****

Avatar
Who love the chocolate?

Posts: 691
Reputation: 26
37 / Male / –
Joined: May 2004
Status: Away
RE: Help with website redirection
Create a file called .htaccess and in it write:

code:
RewriteEngine On
Options +FollowSymlinks

RewriteRule ^(.*)$ http://abc.def.com/$1 [r=301,nc]

Assuming it's an apache server, that'll work.

Edit:  Oh, and put it in the place you're redirecting from. ;)

This post was edited on 09-24-2006 at 01:46 PM by alexp2_ad.
09-24-2006 01:45 PM
Profile E-Mail PM Find Quote Report
Felu
Veteran Member
*****


Posts: 2223
Reputation: 72
30 / Male / Flag
Joined: Apr 2006
Status: Away
O.P. RE: Help with website redirection
quote:
Originally posted by Sunshine
Then i don't get you...a website has an addy not a random xyz...
I meant that if the user goes to -
1. http://mno.def.com/page.html he gets redirected to http://abc.def.com/page.html
2. http://mno.def.com/home.php he gets redirected to http://abc.def.com/home.php
3.
http://mno.def.com/index.php?c=te he gets redirected to http://abc.def.com/index.php?c=te
etc....
09-24-2006 01:48 PM
Profile E-Mail PM Web Find Quote Report
Menthix
forum admin
*******

Avatar

Posts: 5537
Reputation: 102
40 / Male / Flag
Joined: Mar 2002
RE: Help with website redirection
quote:
Originally posted by -!Felu!-
<meta http-equiv="refresh" content="10" URL=http://sunshineweb.org/">
No, the quote sign doesn't belong there, Sunshine had it right. I'm late :p

You can use 0 as time to do a instant redirect (in that case you don't even need a body since it will never show):
code:
<META HTTP-EQUIV=Refresh CONTENT="0; URL=http://www.google.com">

This post was edited on 09-24-2006 at 01:52 PM by Menthix.
Finish the problem
Menthix.net | Contact Me
09-24-2006 01:50 PM
Profile E-Mail PM Web Find Quote Report
Sunshine
Elite Member
*****

Avatar

Posts: 5141
Reputation: 122
– / Female / Flag
Joined: Mar 2004
Status: Away
RE: Help with website redirection
quote:
Originally posted by -!Felu!-
quote:
Originally posted by Sunshine
Then i don't get you...a website has an addy not a random xyz...
I meant that if the user goes to -
1. http://mno.def.com/page.html he gets redirected to http://abc.def.com/page.html
2. http://mno.def.com/home.php he gets redirected to http://abc.def.com/home.php
3.
http://mno.def.com/index.php?c=te he gets redirected to http://abc.def.com/index.php?c=te
etc....

Every page has a header right? All you have to do is change the metatag to hold the correct redirection url...

1. http://mno.def.com/page.html he gets redirected to http://abc.def.com/page.html
on that page you use the url http://abc.def.com/page.html as redirection url
2. http://mno.def.com/home.php he gets redirected to http://abc.def.com/home.php
Here you use http://abc.def.com/home.php as redirection url.

Understand? Ofcourse if you use php to load the same header everywhere then every page will get redirected to wichever you set in the header to be loaded.


This post was edited on 09-24-2006 at 01:57 PM by Sunshine.
[Image: 25dr3o9]
09-24-2006 01:53 PM
Profile E-Mail PM Web Find Quote Report
Felu
Veteran Member
*****


Posts: 2223
Reputation: 72
30 / Male / Flag
Joined: Apr 2006
Status: Away
O.P. RE: Help with website redirection
quote:
Originally posted by Sunshine
Every page has a header right? All you have to do is change the metatag to hold the correct redirection url...

1. http://mno.def.com/page.html he gets redirected to http://abc.def.com/page.html
on that page you use the url http://abc.def.com/page.html as redirection url
2. http://mno.def.com/home.php he gets redirected to http://abc.def.com/home.php
Here you use http://abc.def.com/home.php as redirection url.

Understand?
I can't make each and every possibility [Image: msn_tongue.gif].

quote:
Originally posted by alexp2_ad
Create a file called .htaccess and in it write:

code:
RewriteEngine On
Options +FollowSymlinks

RewriteRule ^(.*)$ http://abc.def.com/$1 [r=301,nc]

Assuming it's an apache server, that'll work.

Edit:  Oh, and put it in the place you're redirecting from. [Image: msn_wink.gif]
Where to put the place i'm redirecting from?
09-24-2006 02:00 PM
Profile E-Mail PM Web Find Quote Report
Pages: (2): « First [ 1 ] 2 » Last »
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On