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

Posted on 2011-02-15
Last Modified: 2012-08-13
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
Question by:R7AF
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2

Expert Comment

ID: 34895273
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..
LVL 13

Author Comment

ID: 34895496
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.

Assisted Solution

_-MYFOX-_ earned 250 total points
ID: 34895644
Here you can find an excellent and simple guide

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

LVL 75

Assisted Solution

by:käµfm³d 👽
käµfm³d   👽 earned 250 total points
ID: 34896625
RewriteEngine On

RewriteRule /page(.*) /info$1

Open in new window

LVL 13

Accepted Solution

R7AF earned 0 total points
ID: 34914970
The following rule does what I need:
RewriteRule 	^page/(.*)  /info/$1 [R=301,L]

Open in new window

LVL 13

Author Closing Comment

ID: 35163429
Thanks for the suggestions.

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
fedora linux on laptop - setup sendmail - or some kind of email 5 64
LogmeIn using Linux Ubuntu 16.04 6 108
IP / 61 76
Can't connect to FTP 18 101
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question