Rewrite url /page/abc/... to /info/abc/...

I want to rename the base path of a website, from "page" to "info". All subfolders should be included, seven levels deep. Is it possible to do this in one line?

/page => /info
/page/abc => /info/abc
/page/def/xyz => /info/def/xyz
LVL 13
Who is Participating?

Improve company productivity with a Business Account.Sign Up

R7AFConnect With a Mentor Author Commented:
The following rule does what I need:
RewriteRule 	^page/(.*)  /info/$1 [R=301,L]

Open in new window

Yes you can rename the physical path, then you must also update your apache configuration file, and then restart the service to let them see the changes..
R7AFAuthor Commented:
I see I wasn't clear enough. I want to know the htaccess rewriterule to do this, or a good example that shows me how to do this.
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

_-MYFOX-_Connect With a Mentor Commented:
Here you can find an excellent and simple guide

käµfm³d 👽Connect With a Mentor Commented:
RewriteEngine On

RewriteRule /page(.*) /info$1

Open in new window

R7AFAuthor Commented:
Thanks for the suggestions.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.