Solved

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

Posted on 2011-02-15
6
389 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
  • 3
  • 2
6 Comments
 
LVL 5

Expert Comment

by:_-MYFOX-_
Comment Utility
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
Comment Utility
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
Comment Utility
Here you can find an excellent and simple guide
http://www.addedbytes.com/for-beginners/url-rewriting-for-beginners/

My2Cent
0
Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

 
LVL 74

Assisted Solution

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

RewriteRule /page(.*) /info$1

Open in new window

0
 
LVL 13

Accepted Solution

by:
R7AF earned 0 total points
Comment Utility
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
Comment Utility
Thanks for the suggestions.
0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Join & Write a Comment

Do you hate spam? I do, and I am willing to bet you do as well. I often wonder, though, "if people hate spam so much, why do they still post their email addresses on the web?" I'm not talking about a plain-text posting here. I am referring to the fa…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
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.

762 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

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now