Home 301 redirect in htaccess not working as expected
Reply: 0

301 redirect in htaccess not working as expected

user1049
1#
user1049 Published in May 21, 2018, 11:17 am

I am trying to add a simple 301 redirect to a website's htaccess, but no redirection is occurring, nor am I encountering any errors--can anyone shed some light? The redirect would redirect people visiting an old blog post to a new page:

  • old blog post: https://www.horizonhomes-samui.com/horizon-homes-construction/
  • new page: https://www.horizonhomes-samui.com/construction/

The redirect code I'm using is:

Redirect 301 /horizon-homes-construction/ https://www.horizonhomes-samui.com/construction/

Possibly Relevant Info

  • My site is a Wordpress site.

  • I also tried adding a "RewriteEngine On" line to the top, but that did not resolve the issue.

  • The htaccess file I'm editing is located in my WordPress root directory (along with wp-content, wp-admin, index.php, etc).

  • The instructions I'm following for adding the 301 redirect are from this guide.

Thanks.

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.309827 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO