Avatar of Richard
Richard
 asked on

redirect folder with 301 redirect

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?
Apache Web Server

Avatar of undefined
Last Comment
Richard

8/22/2022 - Mon
Prabhin MP

#With Redirect
Redirect "/docs/" "http://new.example.com/docs/"
you can try something like this
Prabhin MP

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

try this as well
Richard

ASKER
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
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
Prabhin MP

setup the redirect in ssl file, so once it reaches the ssl section it will be redirected to mentioned path
ASKER CERTIFIED SOLUTION
Richard

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.