Irish SEO,  Marketing & Webmaster Discussion
 

 

Go Back   Irish SEO, Marketing & Webmaster Discussion > Webmaster Help > Webmaster Discussion


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 20-08-2007, 11:59 AM
Wannabe Geek
 
Join Date: Jul 2006
Posts: 113
Zascar will become famous soon enough
Default Perminent Redirect...

Hey Guys.... I have moved the forum on my site to it's own domain.

I want to try to do a permanent 301 redirect. Can anyone tell me the code for sending everything that is www.mydomain.com/forum/*** to www.newdomain.com?

Thanks
Reply With Quote
  #2 (permalink)  
Old 20-08-2007, 01:12 PM
Wannabe Geek
 
Join Date: Sep 2006
Posts: 189
dude will become famous soon enough
Default

Assuming you're Linux...

In .htaccess in your public_html folder -

Redirect 301 /forum/whatever_page.html http://www.newdomain.com
Reply With Quote
  #3 (permalink)  
Old 20-08-2007, 02:41 PM
Wannabe Geek
 
Join Date: Jul 2006
Posts: 113
Zascar will become famous soon enough
Default

Thanks do I need the "http://www" after the "Redirect 301" ?

Will this redirect all pages on the forum?
Reply With Quote
  #4 (permalink)  
Old 20-08-2007, 03:42 PM
Wannabe Geek
 
Join Date: Sep 2006
Posts: 189
dude will become famous soon enough
Default

Nope, just do it exactly as I wrote it.

Redirect 301 /forum http://www.newdomain.com
should redirect everything in the forum directory
Reply With Quote
  #5 (permalink)  
Old 14-09-2007, 11:15 AM
Wannabe Geek
 
Join Date: Apr 2007
Location: Cork
Posts: 110
lostie will become famous soon enough
Default

Can anyone tell me conclusively how to permanently redirect a html page, and i'm on IIS so cant do a htaccess redirect. The only method i've found that works is using the control panel of our host, but surely there's an easier way?
Reply With Quote
  #6 (permalink)  
Old 14-09-2007, 11:43 AM
Forbairt's Avatar
respect my AW-THOR-IT-AYY
 
Join Date: Jun 2007
Location: My Office, Dublin
Posts: 1,664
Forbairt has a reputation beyond reputeForbairt has a reputation beyond reputeForbairt has a reputation beyond reputeForbairt has a reputation beyond reputeForbairt has a reputation beyond reputeForbairt has a reputation beyond reputeForbairt has a reputation beyond reputeForbairt has a reputation beyond reputeForbairt has a reputation beyond reputeForbairt has a reputation beyond reputeForbairt has a reputation beyond repute
Send a message via AIM to Forbairt Send a message via MSN to Forbairt Send a message via Yahoo to Forbairt Send a message via Skype™ to Forbairt
Default

Quote:
Originally Posted by lostie View Post
Can anyone tell me conclusively how to permanently redirect a html page, and i'm on IIS so cant do a htaccess redirect. The only method i've found that works is using the control panel of our host, but surely there's an easier way?
Hmm ... no asp experience ... you could edit the page you want to redirect

Code:

<%
Response.Redirect "http://www.donkeyland.com"
%>
 
But as far as I know it has to be done through the IIS admin panel
Reply With Quote
  #7 (permalink)  
Old 14-09-2007, 11:48 AM
Wannabe Geek
 
Join Date: Apr 2007
Location: Cork
Posts: 110
lostie will become famous soon enough
Default

yeah after doing a search on it i think the main way to do it is through the IIS manager. We have a massive redirect job coming up since we have a new site design and all of our .htm pages are now changing to .aspx, want to make sure everythings done right so as not to upset any rankings.
Reply With Quote
  #8 (permalink)  
Old 14-09-2007, 11:51 AM
Forbairt's Avatar
respect my AW-THOR-IT-AYY
 
Join Date: Jun 2007
Location: My Office, Dublin
Posts: 1,664
Forbairt has a reputation beyond reputeForbairt has a reputation beyond reputeForbairt has a reputation beyond reputeForbairt has a reputation beyond reputeForbairt has a reputation beyond reputeForbairt has a reputation beyond reputeForbairt has a reputation beyond reputeForbairt has a reputation beyond reputeForbairt has a reputation beyond reputeForbairt has a reputation beyond reputeForbairt has a reputation beyond repute
Send a message via AIM to Forbairt Send a message via MSN to Forbairt Send a message via Yahoo to Forbairt Send a message via Skype™ to Forbairt
Default

This would be the IIS article you want ... for the redirects in the first place ...
How To Redirect Browser Requests in Internet Information Services 5.0


on apache I'd say ... to treat .htm files as .php files ... so you can keep the same extension .. they just get treated as php ...
Is there similar with IIS ? might solve a problem for you
Reply With Quote
  #9 (permalink)  
Old 14-09-2007, 02:07 PM
Frodo's Avatar
Ciaran Rooney - Weeno Ltd
 
Join Date: Jan 2007
Location: London
Posts: 335
Frodo has much to be proud ofFrodo has much to be proud ofFrodo has much to be proud ofFrodo has much to be proud ofFrodo has much to be proud ofFrodo has much to be proud ofFrodo has much to be proud ofFrodo has much to be proud ofFrodo has much to be proud of
Send a message via MSN to Frodo Send a message via Skype™ to Frodo
Default

i'm not sure how you would do it on IIS but why add mod rewrite aswell to make any future moves easier and for seo. ie redirect somepage.htm to /somepage and then rewrite that to somepage.aspx

I have seen some work arounds using a custom 404 page wrote in asp to handle the rewrites that might work for you.
__________________

Reply With Quote
  #10 (permalink)  
Old 14-09-2007, 02:28 PM
Wannabe Geek
 
Join Date: Apr 2007
Location: Cork
Posts: 110
lostie will become famous soon enough
Default

can you do a mod rewrite on IIS? I was under the impression mod rewrite was specific to linux
Reply With Quote
Reply

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
301 redirect issue lostie Webmaster Discussion 2 17-07-2007 12:33 PM
To Redirect or not to redirect? lostie Webmaster Discussion 21 24-05-2007 09:35 PM
Delete Or Redirect Files From Server? Peter McC Webmaster Discussion 4 14-02-2007 12:32 PM
301 redirect question JamesA Coding Help 11 06-02-2007 08:59 PM
Shorter URLs with 301 redirect blacknight Webmaster Discussion 1 31-08-2006 09:08 PM


All times are GMT +1. The time now is 06:27 AM.


Powered by: vBulletin Version 3.7.2, Copyright ©2000 - 2008, Jelsoft Enterprises Limited.

Search Engine Friendly URLs by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56