Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

How to enable php virtual directory support?

Posted on 2009-03-28
1
Medium Priority
?
6,173 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
[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
1 Comment
 
LVL 3

Accepted Solution

by:
Chakotay505 earned 1500 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Fine Tune your automatic Updates for Ubuntu / Debian
This article discusses how to implement server side field validation and display customized error messages to the client.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
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.

664 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