Irish SEO,  Marketing & Webmaster Discussion

 

301 redirect question

This is a discussion on 301 redirect question within the Coding Help forums, part of the Webmaster Help category; Just in reference to James' question about the ia folder: Code: RewriteCond %{HTTP_HOST} ^(www\.)?irishwidget\.com #just in case www is missing ...


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

Register Forum Rules FAQDonate Members List Calendar Search Today's Posts Mark Forums Read


Notices

Reply

 

LinkBack Thread Tools Display Modes
  #11 (permalink)  
Old 04-02-2007, 11:27 PM
daviddoran's Avatar
Wannabe Geek
Recent Blog: iMSISS
 
Join Date: Aug 2006
Location: Meath, Ireland
Posts: 342
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
daviddoran will become famous soon enough
Default

Just in reference to James' question about the ia folder:
Code:
RewriteCond %{HTTP_HOST} ^(www\.)?irishwidget\.com #just in case www is missing from url
RewriteRule ^ia/$  http://www.widget.ie/cgi-bin/ia/ [L,R=301]
RewriteRule ^(.+)  http://www.widget.ie/$1 [L,R=301]
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #12 (permalink)  
Old 06-02-2007, 09:59 PM
Frontpage User
 
Join Date: Dec 2006
Posts: 22
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
JamesA will become famous soon enough
Default

Thanks David, but I'm still having a problem
This is what I'm using

Code:
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^(www\.)?harmonicajukebox\.com
RewriteRule ^ia/$  http://www.harmonicaclub.com/cgi-bin/ia/ [L,R=301]
RewriteRule ^(.+)  http://www.harmonicaclub.com/$1 [L,R=301]
The redirect is working for harmonicajukebox.com although it does bring it to harmonicaclub.com/index.html (don't know if that matters) and it works for all folders that are in the same structure as the original site.
When it tries to direct http://www.harmonicajukebox.com/ia/test.htm to http://www.harmonicaclub.com/cgi-bin/ia/test.htm I just get a 404 error
__________________

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
301, question, redirect

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
Question about 'Adult Oriented' domains SlitheryImp Domains and domaining 68 26-08-2008 02:27 AM
301 redirects - how long? TheMenace Search Engine Optimisation 4 06-09-2007 09:21 PM
IE7 Question blacknight Webmaster Discussion 4 04-10-2006 11:01 PM
301 Redirects on Windows 2003 Gavin Server / Technical Administration Tips and Queries 7 02-10-2006 07:00 PM
Shorter URLs with 301 redirect blacknight Webmaster Discussion 1 31-08-2006 09:08 PM


Sponsored links

Paid On Results


All times are GMT +1. The time now is 04:31 AM.


Powered by: vBulletin Version 3.7.3, Copyright ©2000 - 2008, Jelsoft Enterprises Limited.
Hosted in Ireland by Blacknight - Test your ISP |Irish Hosting Directory| Armchair.ie|Logo by Eden Web Design|Avatars by Afterglow |Latest Blog Entries | VPS HostingAd Management by RedTyger

Search Engine Friendly URLs by vBSEO 3.2.0