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?
topUKlawyerAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Prabhin MPEngineer-TechOPSCommented:
#With Redirect
Redirect "/docs/" "http://new.example.com/docs/"
you can try something like this
Prabhin MPEngineer-TechOPSCommented:
Redirect 301 /path/to-old-url    http://www.cyourdomain.com/path/to-new-url

try this as well
topUKlawyerAuthor 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 MPEngineer-TechOPSCommented:
setup the redirect in ssl file, so once it reaches the ssl section it will be redirected to mentioned path
topUKlawyerAuthor Commented:
from internet

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Folder Redirect

From novice to tech pro — start learning today.