homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

Directing all requests to index.php in sub folder

5+ Year Member

Msg#: 3614621 posted 10:24 am on Mar 30, 2008 (gmt 0)

I'm trying to figure out how to direct all requests to the index of a subfolder so I can set things up on my test server as they will be in my host server (no root access).

In my subfolder (C:Apache/htdocs/subfolder/htdocs) I have the index.php page and an .htaccess file. Here is what I have in the .htaccess:

RewriteEngine on
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT-FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1

In the http.conf file of the root (C:Apache/confi) I have made these settings:

<Directory "C:/Apache/htdocs">
Options All
AllowOverride All

It's not working though. I'm getting a "500 Internal Server Error." Is this just not possible or am I doing something wrong?

Apache/2.0.59 (Win32) PHP/5.2.3


Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved