Go Back   CodingForums.com > :: Server side development > Apache configuration

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 06-09-2011, 05:06 PM   PM User | #1
adamsund
New to the CF scene

 
Join Date: Jun 2011
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
adamsund is an unknown quantity at this point
.htaccess help

Hi,

I've recently set up a website which consists of a PHP script so far. Problem is, I'm trying to add other PHP and Perl scripts but they come up with 404 error. I've managed to narrow the problem down to the .htaccess in the PUBLIC_HTML folder which is required for the original PHP script. If I delete it, other scripts work, but not the first PHP.

I'm a novice when it comes to PHP and .htaccess files, otherwise I think it should be fairly simple to fix. I did some reading earlier and thought that the ALLOWOVERRIDE option may fix it, but this stops the original script from working also. The .htaccess file contains
Code:
<IfModule mod_rewrite.c>
   RewriteEngine on
   RewriteRule    ^$ app/webroot/    [L]
   RewriteRule    (.*) app/webroot/$1 [L]
</IfModule>

Rewritebase /
Any help would be much appreciated. Also, on the subject, has anyone got any reccomendations for PHP books for beginners?

Thanks
adamsund is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:38 AM.


Advertisement
Log in to turn off these ads.