Solved

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

Posted on 2011-02-15
6
391 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-_
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
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 
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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Whatever be the reason, if you are working on web development side,  you will need day-today validation codes like email validation, date validation , IP address validation, phone validation on any of the edit page or say at the time of registration…
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é.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

863 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

28 Experts available now in Live!

Get 1:1 Help Now