We help IT Professionals succeed at work.

redirect folder with 301 redirect

topUKlawyer
topUKlawyer asked
on
301 page redirect

I am wanting to re direct

www.xxxxx(whatever)/sales to
www.xxxx(whatever)/mytown/sales

Foe SEO benefits.

I have an apache server
What would be the 301 redirect code and where on my server would it go?

ie where to upload it to?
Comment
Watch Question

Prabhin MPDevOps Engineer
Distinguished Expert 2018

Commented:
#With Redirect
Redirect "/docs/" "http://new.example.com/docs/"
you can try something like this
Prabhin MPDevOps Engineer
Distinguished Expert 2018

Commented:
Redirect 301 /path/to-old-url    http://www.cyourdomain.com/path/to-new-url

try this as well

Author

Commented:
Prabhin, thanks.

I have https site already fully 301 redirected from http site so the further specific page direct would be to https changed layout
Prabhin MPDevOps Engineer
Distinguished Expert 2018

Commented:
setup the redirect in ssl file, so once it reaches the ssl section it will be redirected to mentioned path
from internet