Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

Easy Date   Perfect Money   V7N Directory

Reply
 
LinkBack Thread Tools Display Modes
Old 07-02-2004, 01:31 PM   #1 (permalink)
Contributing Member
 
GoldDust's Avatar
 
Join Date: 12-28-03
Location: East London, UK
Posts: 601
iTrader: 0 / 0%
Latest Blog:
None

GoldDust is just really niceGoldDust is just really niceGoldDust is just really niceGoldDust is just really niceGoldDust is just really niceGoldDust is just really niceGoldDust is just really niceGoldDust is just really niceGoldDust is just really niceGoldDust is just really niceGoldDust is just really nice
Send a message via MSN to GoldDust
complete redirect

I knew I would need to ask this question eventually..

I would like to place a redirect on a site link John has done with the old IMR to v7n on my dj forum

I was useing this code below but Im still getting pages going to the 404 error page not to the new site.

Quote:
Redirect 301 / http://www.yourdomain.com/
what re-direct code should I use that will direct every page of the old site to the new not just the index page of the old site...

thanx
Gold
GoldDust is offline  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Old 07-02-2004, 02:02 PM   #2 (permalink)
Inactive
 
Pipeline-Webdesign's Avatar
 
Join Date: 02-11-04
Location: Corpus Christi, TX
Posts: 901
iTrader: 0 / 0%
Latest Blog:
None

Pipeline-Webdesign is a jewel in the roughPipeline-Webdesign is a jewel in the roughPipeline-Webdesign is a jewel in the roughPipeline-Webdesign is a jewel in the roughPipeline-Webdesign is a jewel in the roughPipeline-Webdesign is a jewel in the roughPipeline-Webdesign is a jewel in the roughPipeline-Webdesign is a jewel in the rough
Send a message via AIM to Pipeline-Webdesign Send a message via MSN to Pipeline-Webdesign Send a message via Yahoo to Pipeline-Webdesign
Re: complete redirect

Quote:
Originally Posted by GoldDust
I knew I would need to ask this question eventually..

I would like to place a redirect on a site link John has done with the old IMR to v7n

I was useing this code below but Im still getting pages going to the 404 error page not to the new site.

Quote:
Redirect 301 / http://www.yourdomain.com/
what re-direct code should I use that will direct every page of the old site to the new not just the index page of the old site...

thanx
Gold
[code]<?php

header('location:www.yourdomain.com');

?>
Pipeline-Webdesign is offline  
Add Post to del.icio.us
Reply With Quote
Old 07-02-2004, 02:04 PM   #3 (permalink)
Possible Terrorist
 
kwvarga's Avatar
 
Join Date: 10-13-03
Location: Tuscaloosa, AL or Atlanta
Posts: 4,904
iTrader: 0 / 0%
Latest Blog:
A+ Certification

kwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web prokwvarga is a highly respected web pro
Send a message via AIM to kwvarga
thats just the equivalent PHP code.. doesnt even do what he wants.

I think
Redirect 301 /* maybe.. not sure
__________________
Kyle Varga
"m3lt/theSpear"
student, web designer/coder, future IT consultant
Experience: PHP/MySQL, Java, C++, MS-SQL
kwvarga is offline  
Add Post to del.icio.us
Reply With Quote
Old 07-02-2004, 02:34 PM   #4 (permalink)
Contributing Member
 
GoldDust's Avatar
 
Join Date: 12-28-03
Location: East London, UK
Posts: 601
iTrader: 0 / 0%
Latest Blog:
None

GoldDust is just really niceGoldDust is just really niceGoldDust is just really niceGoldDust is just really niceGoldDust is just really niceGoldDust is just really niceGoldDust is just really niceGoldDust is just really niceGoldDust is just really niceGoldDust is just really niceGoldDust is just really nice
Send a message via MSN to GoldDust
im no clearer on the issue!
GoldDust is offline  
Add Post to del.icio.us
Reply With Quote
Old 07-04-2004, 06:52 AM   #5 (permalink)
Contributing Member
 
Join Date: 10-14-03
Location: Top left of England, UK
Posts: 243
iTrader: 0 / 0%
Latest Blog:
None

trevHCS is liked by somebodytrevHCS is liked by somebodytrevHCS is liked by somebodytrevHCS is liked by somebodytrevHCS is liked by somebody
Send a message via MSN to trevHCS
If you've got mod_rewrite enabled on the server then you could do either of the following.

The first one will redirect to the same page, eg:
olddomain.com/mypage.htm -> newdomain.com/mypage.htm

The second one should just send everything to the front page.

[code:1:19eb1c3c4b]RewriteEngine on
RewriteBase /
RewriteRule ^(.*)$ http://www.newdomain.com/$1 [R=301][/code:1:19eb1c3c4b]


[code:1:19eb1c3c4b]RewriteEngine on
RewriteBase /
RewriteRule ^(.*)$ http://www.newdomain.com/ [R=301][/code:1:19eb1c3c4b]

If that doesn't work I'm not sure if there is a way to use redirect 301 except by doing it for every page, but then again I'm no apache expert.

Trev
trevHCS is offline  
Add Post to del.icio.us
Reply With Quote
Old 07-06-2004, 02:57 PM   #6 (permalink)
Contributing Member
 
GoldDust's Avatar
 
Join Date: 12-28-03
Location: East London, UK
Posts: 601
iTrader: 0 / 0%
Latest Blog:
None

GoldDust is just really niceGoldDust is just really niceGoldDust is just really niceGoldDust is just really niceGoldDust is just really niceGoldDust is just really niceGoldDust is just really niceGoldDust is just really niceGoldDust is just really niceGoldDust is just really niceGoldDust is just really nice
Send a message via MSN to GoldDust
ok just to double check, would this code below also pass all pr and backlinks from the old site to the new site if i place this code below in the .htaccess of the old site?

Quote:
RewriteEngine on
RewriteBase /
RewriteRule ^(.*)$ http://www.newdomain.com/ [R=301]
GoldDust is offline  
Add Post to del.icio.us
Reply With Quote
Old 07-06-2004, 09:33 PM   #7 (permalink)
v7n Mentor
 
Pretend's Avatar
 
Join Date: 10-13-03
Location: Ft. Lewis, WA
Posts: 3,264
iTrader: 0 / 0%
Pretend is a web professional of the highest orderPretend is a web professional of the highest orderPretend is a web professional of the highest orderPretend is a web professional of the highest orderPretend is a web professional of the highest orderPretend is a web professional of the highest orderPretend is a web professional of the highest orderPretend is a web professional of the highest orderPretend is a web professional of the highest orderPretend is a web professional of the highest orderPretend is a web professional of the highest order
Send a message via AIM to Pretend Send a message via Skype™ to Pretend
How would I make http://theillest.net go to http://www.theillest.net with a 301 redirect?

(sorry to steal your thread. lol)
__________________
My posts were too dang barren, so this got thrown in to take up a little bit of space.
Pretend is offline  
Add Post to del.icio.us
Reply With Quote
Old 07-07-2004, 04:24 AM   #8 (permalink)
Contributing Member
 
Join Date: 10-14-03
Location: Top left of England, UK
Posts: 243
iTrader: 0 / 0%
Latest Blog:
None

trevHCS is liked by somebodytrevHCS is liked by somebodytrevHCS is liked by somebodytrevHCS is liked by somebodytrevHCS is liked by somebody
Send a message via MSN to trevHCS
Quote:
Originally Posted by GoldDust
ok just to double check, would this code below also pass all pr and backlinks from the old site to the new site if i place this code below in the .htaccess of the old site?
It should do - at least thats what the experts seem to recommend.

The code tells the spider that everything has permenantly moved to the new domain so regard the new domain in the same way as the old one.

Edit: The code above will send everything to the front page if someone visits any page on the old domain. If you have the same page structure on the new domain I'd use the original example with the $1 on the end of the URL as that'll send spiders deeper into your site rather than them starting again at the front page.

Trev
trevHCS is offline  
Add Post to del.icio.us
Reply With Quote
Old 07-07-2004, 06:01 AM   #9 (permalink)
Inactive
 
younghistorians's Avatar
 
Join Date: 10-13-03
Location: USA
Posts: 1,340
iTrader: 0 / 0%
Latest Blog:
None

younghistorians is just really niceyounghistorians is just really niceyounghistorians is just really niceyounghistorians is just really niceyounghistorians is just really niceyounghistorians is just really niceyounghistorians is just really niceyounghistorians is just really niceyounghistorians is just really niceyounghistorians is just really niceyounghistorians is just really nice
Quote:
Originally Posted by trevHCS
If you've got mod_rewrite enabled on the server then you could do either of the following.

The first one will redirect to the same page, eg:
olddomain.com/mypage.htm -> newdomain.com/mypage.htm

The second one should just send everything to the front page.

[code:1:ad4253fc90]RewriteEngine on
RewriteBase /
RewriteRule ^(.*)$ http://www.newdomain.com/$1 [R=301][/code:1:ad4253fc90]


[code:1:ad4253fc90]RewriteEngine on
RewriteBase /
RewriteRule ^(.*)$ http://www.newdomain.com/ [R=301][/code:1:ad4253fc90]

If that doesn't work I'm not sure if there is a way to use redirect 301 except by doing it for every page, but then again I'm no apache expert.

Trev
Is mod_rewrite available on V7 hosting? (Is it already on there)?
younghistorians is offline  
Add Post to del.icio.us
Reply With Quote
Old 07-07-2004, 06:14 AM   #10 (permalink)
Contributing Member
 
Join Date: 10-14-03
Location: Top left of England, UK
Posts: 243
iTrader: 0 / 0%
Latest Blog:
None

trevHCS is liked by somebodytrevHCS is liked by somebodytrevHCS is liked by somebodytrevHCS is liked by somebodytrevHCS is liked by somebody
Send a message via MSN to trevHCS
Quote:
Originally Posted by Sesshoumaru-Sama
How would I make http://theillest.net go to http://www.theillest.net with a 301 redirect?
I came across this code elsewhere so I've not tried it and it might need some tweaking I'd guess.

[code:1:eb4b7378db]RewriteEngine on
RewriteCond %{HTTP_HOST} ^yourdomain\.com
RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [R=301,L][/code:1:eb4b7378db]

Trev
trevHCS is offline  
Add Post to del.icio.us
Reply With Quote
Old 07-07-2004, 09:13 AM   #11 (permalink)
Contributing Member
 
GoldDust's Avatar
 
Join Date: 12-28-03
Location: East London, UK
Posts: 601
iTrader: 0 / 0%
Latest Blog:
None

GoldDust is just really niceGoldDust is just really niceGoldDust is just really niceGoldDust is just really niceGoldDust is just really niceGoldDust is just really niceGoldDust is just really niceGoldDust is just really niceGoldDust is just really niceGoldDust is just really niceGoldDust is just really nice
Send a message via MSN to GoldDust
Quote:
RewriteEngine on
RewriteBase /
RewriteRule ^(.*)$ http://www.newdomain.com/ [R=301]


works a treat! all pages are now redirected.

Thanx :wink:
GoldDust is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
301 Redirect andrewdawson SEO Forum 5 01-28-2008 03:02 AM
301 redirect fundoomike SEO Forum 2 09-20-2007 05:16 AM
301 redirect DanM SEO Forum 3 12-07-2004 10:21 PM
redirect cray Coding Forum 3 03-13-2004 09:55 AM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 11:32 PM.
© Copyright 2008 V7 Inc