![]() | |
| |||
| 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 |
| |||
| Assuming you're Linux... In .htaccess in your public_html folder - Redirect 301 /forum/whatever_page.html http://www.newdomain.com |
| |||
| Nope, just do it exactly as I wrote it. Redirect 301 /forum http://www.newdomain.com should redirect everything in the forum directory |
| |||
| 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?
__________________ Software and IT Books | Software Licensing | Student Software | Student Magazine | Garage Car Exchange | Cork Modelling Agency |
| ||||
| Quote:
Code: <% Response.Redirect "http://www.donkeyland.com" %> |
| |||
| 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.
__________________ Software and IT Books | Software Licensing | Student Software | Student Magazine | Garage Car Exchange | Cork Modelling Agency |
| ||||
| 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 |
| ||||
| 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.
__________________ |
| |||
| can you do a mod rewrite on IIS? I was under the impression mod rewrite was specific to linux
__________________ Software and IT Books | Software Licensing | Student Software | Student Magazine | Garage Car Exchange | Cork Modelling Agency |
| Thread Tools | |
| Display Modes | |
|
|
| | ||||
| 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 |