?
Solved

Redirect using .htaccess

Posted on 2015-02-05
4
Medium Priority
?
118 Views
Last Modified: 2015-02-05
We have created a new WordPress site to replace the "old" site.

The old site was www.xyz.com.

The new site is www.xyz.com/new-site

We want to remove all the subpages on the old site & create a "redirect" to the new site for a 404 error.

Somewhere I found that putting a line of code in the .htaccess file, as follows, would take care of that:

ErrorDocument 404 http://www.xyz.com/new-site

To test this, I deleted a subpage from the old site, then directly typed it's address in to the browser. I still get the old page, eve though it's not there. I assume it's in my cache??

So I went to another browser, Chrome (I don't want to clear my whole cache in FireFox for other reasons).

I typed in the same direct page reference. It's still there. I cleared the cache in Chrome for the last 4 weeks, typed it in again it's still there.

That's physically impossible since the page is NOT ON the site.

What can I do?

You can try it; the real address (of the deleted page) is www.rain1.com/irrigation.htm.

Thanks

What can I do?
0
Comment
Question by:Richard Korts
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 53

Expert Comment

by:strung
ID: 40591709
If the "real page" is Rain One Irrigations systems, then the link in your post above still points to it.  Use an FTP client to check whether irrigation.htm is still in the www folder for rain1.com.
0
 

Author Comment

by:Richard Korts
ID: 40591728
to strung

I use FileZilla for ftp. I physically deleted the page using FielZilla. It is not there; see attached.
filezilla.jpg
0
 
LVL 53

Accepted Solution

by:
strung earned 2000 total points
ID: 40591733
The screen shot shows you are looking in the folder /archive. Look in the root directory or in the folder /www.
0
 

Author Closing Comment

by:Richard Korts
ID: 40591740
oops, you're right.

I deleted it at the root & it works; redirects to the new site.

Thanks!
0

Featured Post

Limited time offer using promo code EXPERTS25

Designed with a wealth of functionality and convenience, ATEN's new Thunderbolt™ 2 Sharing Switch takes your Thunderbolt setup to the next level. Now through August 31, 2017, Experts Exchange members get 25% off the US7220 on the ATEN USA eShop using promo code EXPERTS25.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
In threads here at EE, each comment has a unique Identifier (ID). It is easy to get the full path for an ID via the right-click context menu. However, we often want to post a short link within a thread rather than the full link. This article shows a…
This Micro Tutorial will demonstrate how to add subdomains to your content reports. This can be very importing in having a site with multiple subdomains.
Shows how to create a shortcut to site-search Experts Exchange using Google in the Chrome browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch the Search Engine Menu: In chrome, via you…

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question