Help with 301 redirect

by doggax
3 replies
  • SEO
  • |
Hello,

I have changed the URL slightly on 3 pages and need to 301 redirect them but I'm unsure how to add the redirects in the .htaccess file?

Can anyone help please?

https://www.mywebsite.co.uk/areas/we...ands/stafford/ to https://www.mywebsite.co.uk/areas/we...staffordshire/
https://www.mywebsite.co.uk/areas/we...ands/hereford/ to https://www.mywebsite.co.uk/areas/we...herefordshire/
https://www.mywebsite.co.uk/areas/we...lands/warwick/ to https://www.mywebsite.co.uk/areas/we.../warwickshire/

# BEGIN WordPress
# The directives (lines) between `BEGIN WordPress` and `END WordPress` are
# dynamically generated, and should only be modified via WordPress filters.
# Any changes to the directives between these markers will be overwritten.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /tgf/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /tgf/index.php [L]
</IfModule>

# END WordPress
#301 #redirect
Avatar of Unregistered
Avatar of Unregistered

Trending Topics