Why register for free on WebRadiance? |
Why register for free on WebRadiance? |
![]() |
Welcome to WebRadiance forums! WebRadiance is a place for discussion and help on a large range of web design and development related topics such as HTML, CSS, ASP & .NET, PHP and SEO. It is provided for free, without ads and is a friendly place for beginners and professionals alike. By joining us today you can take part in our rapidly growing community. Registering enables you to:
|
![]() ![]() |
Oct 25 2008, 05:31 PM
Post
#1
|
|
|
W.R. Private Group: Members Posts: 24 Joined: 10-October 08 From: Barnet EN4, London Member No.: 1,240 |
Hi guys,
I'm almost there in completing the new site for our company to replace the old one. The old one is an ASP content managed site - the new one is strictly HTML. (Although at some point later I will be adding search and forms.) Most likely the new site will be on a different server. The obvious concern I'm grappling to find an answer for is the existing links on search engines that will point to pages no longer available on the old site and server. Ok, I've done some research. From what I understand, and please correct me as I'm not in full understanding, I need to create a .htaccess file. For this to work I need the new host to be on a UNIX server as only Unix supports .htaccess files. And of course, the host - Unix or not - may decide whether or not to support .htaccess anyway. Next step in my (mis)understanding is: I place the .htaccess file on the site root for our domain on the NEW server. Hopefully this is the case as I have no access to the existing host server to place a .htaccess file on it... So does this mean that even if traffic is pointing to the old (existing) server, because of the domain name it will still find its way to the NEW host - find the redirect in the .htaccess file - and be directed to the right page? Next up is an example of what I think is the starting point for the .htaccess file: (which all I want it to do is 301 redirects) <Files ~ "^.(htaccess|htpasswd)$"> deny from all </Files> Redirect permanent /1/default.asp /index.html Redirect permanent /1/productDetails.asp?productID=85&deptID=21 /make/product/variable/modelno/index.html Redirect permanent /1/default.asp?zoneID=45&leveloneID=83 /help-advice-tips/environmentally-friendly.html order deny,allow Yeah! I know this is probably not right, but at least from the above you can see why I wanted to build a new site myself - I have no control over those page addresses! Ok, so I need some help clearing this up. Oh, and I know that I should probably be doing another CMS but I don't know how nor have time to learn and besides Dreamweaver templates do enough! Thank You nb: Can anyone recommend a host for my needs in the UK. Probably only need max 500MB-1GB space, bandwidth - not a clue! Do I need chmod (?)? This post has been edited by clubdesign: Oct 25 2008, 05:55 PM |
|
|
|
Oct 26 2008, 09:47 AM
Post
#2
|
|
![]() the owner3r Group: Administrators Posts: 1,531 Joined: 4-April 06 From: North Wales, UK Member No.: 4 |
The htaccess code is
CODE Redirect 301 /oldsite/folder/file.asp http://www.domain.com/newsite/file.html Make sure its .htaccess (meaning no name just the extension is .htaccess as notepad adds a .txt to it.) Upload to the root level and the browser will do the rest of the work. -------------------- |
|
|
|
Nov 1 2008, 06:01 AM
Post
#3
|
|
![]() The buddy system:never fails Group: Administrators Posts: 1,766 Joined: 4-April 06 Member No.: 1 |
nb: Can anyone recommend a host for my needs in the UK. Probably only need max 500MB-1GB space, bandwidth - not a clue! Do I need chmod (?)? Id reccomend shopping around. Search google for some companies. 1&1 is a good firm though. Just make sure you get apache hosting, as .htacess is only supported on that (as opposed to windows hosting). -------------------- |
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 8th January 2009 - 08:06 AM |