PDA

View Full Version : Housecleaning & HTACCESS


KeyWord
02-12-2003, 15:49/03:49PM
Hello all.

I redesigned a site for a client.

Their old hosting was on a unix server with php.

The new site is on a windows platform with asp.

The client uses the old site for sharing files and
their htaccess file has quite a few things in it for
which I'm unsure the purpose.

When searching through MSN, you can find
old SERPS for pages that are on the old
site.

What I want to do is redirect all web page (http) requests
to the home page of the new site.

I also dont want to interfere with the functionality of
the existing .htaccess file. The current htaccess file has
commands such as "authname", "AuthUserFile", and more.
I want to add my line of code safely.

I noticed that there can be issues with using notepad to
make changes, as notepade may put in linebreaks or such.

So what I'm looking at is to add in this line:
Redirect permanent / http://www.newsite.com

Should I add this line to the beginning of the .htaccess file?

The current htaccess file has these thick black vertical bars when
I view it using notepad. What are those? Are they a problem?

Thoughts, advice, help is greatly appreciated!

captainccs
02-12-2003, 18:41/06:41PM
Originally posted by KeyWord
So what I'm looking at is to add in this line:
Redirect permanent / http://www.newsite.com

Should I add this line to the beginning of the .htaccess file? That will redirect only requests to "/" You need to redirect page by page, URL by URL. As far as I know, htaccess does not accept wildcards.

You might be better off by shutting down the old site and parking the old domain on the new one but if people are trying to access files ending with ".php" you still have a huge problem. :(