logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: redirect in .htaccess does not work
Author
alanchen



Joined: 16 Sep 2014
Posts: 1

PostPosted: Thu 18 Sep '14 5:35    Post subject: redirect in .htaccess does not work Reply with quote

One site just linked to my website with incorrect URL as http://www.datanumen.com/aor/%e2%80%9d . I find this and want to correct this by redirecting the URL to http://www.datanumen.com/outlook-repair/ . Therefore, I add the following line in my .htaccess, as follows:

Redirect 301 /aor/%e2%80%9d http://www.datanumen.com/outlook-repair/

However, this does not work. When I input http://www.datanumen.com/aor/%e2%80%9d in FireFox or IE, the browser still said the page not found(404) error.

How to solve the problem?

Thanks

Alan
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3059
Location: Hilversum, NL, EU

PostPosted: Mon 22 Sep '14 11:44    Post subject: Reply with quote

Try it with a rewrite rule:

RewriteEngine on
RewriteRule /aor(.*) http://www.datanumen.com/outlook-repair/ [R=301,L]
Back to top


Reply to topic   Topic: redirect in .htaccess does not work View previous topic :: View next topic
Post new topic   Forum Index -> Apache