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 ...
| |||||||
| Register | Forum Rules | FAQ | Donate | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||||
| 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]
|
| ||||
| 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]
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 |
| Tags |
| 301, question, redirect |
| Thread Tools | |
| Display Modes | |
|
|
| ||||
| 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 |
| ||||||||
| | ![]() | |||||||