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
etc
 
LVL 13
R7AFAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

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

Open in new window

0
 
_-MYFOX-_Commented:
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..
0
 
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.
0
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
http://www.addedbytes.com/for-beginners/url-rewriting-for-beginners/

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

RewriteRule /page(.*) /info$1

Open in new window

0
 
R7AFAuthor Commented:
Thanks for the suggestions.
0
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.