Solved

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

Posted on 2011-02-15
6
403 Views
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
etc
 
0
Comment
Question by:R7AF
[X]
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
6 Comments
 
LVL 5

Expert Comment

by:_-MYFOX-_
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..
0
 
LVL 13

Author Comment

by:R7AF
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.
0
 
LVL 5

Assisted Solution

by:_-MYFOX-_
_-MYFOX-_ earned 250 total points
ID: 34895644
Here you can find an excellent and simple guide
http://www.addedbytes.com/for-beginners/url-rewriting-for-beginners/

My2Cent
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 75

Assisted Solution

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

RewriteRule /page(.*) /info$1

Open in new window

0
 
LVL 13

Accepted Solution

by:
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

0
 
LVL 13

Author Closing Comment

by:R7AF
ID: 35163429
Thanks for the suggestions.
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Fine Tune your automatic Updates for Ubuntu / Debian
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…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses

626 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