Solved

How to enable php virtual directory support?

Posted on 2009-03-28
1
5,454 Views
Last Modified: 2012-05-06
How do I enable php virtual directory support and what is its functions? I just can't find the settings in httpd.conf.

Can't find the answer on Google.  
0
Comment
Question by:space88
1 Comment
 
LVL 3

Accepted Solution

by:
Chakotay505 earned 500 total points
ID: 24012645
Hm  think you mean virtual directories created with mod_rewrite.

mod_rewrite is a HTTPD module that enables you to create "virtual directories" and files, using a regular expression syntax, and map them to a specific file. It has to be enabled in Apache and you'll need
to enable the override type file_info (see http://httpd.apache.org/docs/2.2/mod/core.html#allowoverride).
More information on mod_rewrite can be found at http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html.

Simple rewrite example:

File .htaccess:
RewriteEngine on
RewriteRule ^([A-Za-z]+)/([A-Za-z]+)\.html$ index.php?f=$1&p=$2

Redirects myFolder/myPage.html to index.php?f=myFolder&p=myPage
0

Featured Post

Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

Join & Write a Comment

I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
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.:
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.

708 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

15 Experts available now in Live!

Get 1:1 Help Now