| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
Senior Member
Join Date: Jan 2005
Posts: 12,340
|
htaccess question
We want to redirect an entire old site to a single URL. For example: www.oldsite.com/* to www.newsite.com/something/blah.html However, when I use Code:
How can I drop that "products.html" bit? |
|
|
|
|
|
#2 (permalink) |
|
Floating libation anyone?
|
Try this: Code:
It should catch it all and redirect accordingly. However, your server has to be configured accordingly, so I'm not quite sure if this will help given your error above. IMO, though, use that other bit above just for redirecting from an old page to a new one. fun: HGC v.4 | last.fm: DT | me | oi! f*ck u roto: ...via meebo!
New to interweb design? Your friends at dt can help. |
|
|
|
#4 (permalink) |
|
Registered Abuser
Join Date: Jun 2006
Location: London, England.
Posts: 176
|
That rule will take whatever you have after the domain name and append it on the end of ht*p://www.newsite.com/. So if you have ht*p://www.theoldsite.com/one/two/three.html it'll redirect you to ht*p://www.thenewsite.com/one/two/three.html To redirect from any page on the old site to a single page on the new site, use the following: Code:
|
|
|
|
#7 (permalink) | |
|
Floating libation anyone?
|
Quote:
fun: HGC v.4 | last.fm: DT | me | oi! f*ck u roto: ...via meebo!
New to interweb design? Your friends at dt can help. |
|
|
![]() |