Welcome to HostingForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

mod_rewrite directory

 
   Web Hosting Problem Solving Community! (Home) -> Apache RSS
Next:  Reasons for a website  
Author Message
James Fassett

External


Since: Dec 23, 2007
Posts: 1



(Msg. 1) Posted: Sun Dec 23, 2007 9:17 pm
Post subject: mod_rewrite directory
Archived from groups: alt>apache>configuration (more info?)

Hi,

I am using mod_rewrite to re-direct all requests to a directory to
a .php script using a set of commands similar to:

RewriteEngine on
RewriteRule !\.(gif|jpg|png|css)$ ../some_dir/handler.php
[T=application/x-httpd-php]

These reside within a .htaccess file within public_html/visible_dir/

The result is that http://myserver/visible_dir/ is passed to
handler.php for processing and all is output as expected.

But - I am having trouble with the url http://myserver/visible_dir
(<-- no trailing slash). Apache gives me a 400 Bad Request header.
Error logs don't show anything - just a complaint that no 400.shtml
exists in the public_html directory.

I've tried multiple rewrite rules inside the .htaccess files of /
visible_dir and / -- all to no avail. Can anyone suggest or point out
my error?

Thanks,
James.

 >> Stay informed about: mod_rewrite directory 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
problems with php and mod_rewrite - When Apache starts I get the message "PHP startup: unable to load the dynamic library: 'c:\program files\php \ext\php_exif.dll' - The specified module could not be found." Also I want to enable mod_rewrite, as per cakephp manual, with the line...

Yet Another mod_rewrite SSL Question... - Hey Guys, I'm having an interesting issue with redirecting http traffic to https using mod_rewrite. First, I'll explain my setup a little bit. I'm running Apache 2.0.52 on Redhat. I basically have something that looks like this: Listen 80 Listen..

mod_rewrite dynamic directories - Hello all, Ihave a site that has dynamic kiosk stores and I can't seem to get everything to work how I want it to. 1. I need url.com/kiosk_name going to url.com/store/index.php? kiosk=kiosk_name (which I have that so far). 2. I need..

.htaccess / mod_rewrite - extrernal filters - The docs say there is an "external filter" option that can be used in ..htaccess / mod_rewrite can anyone point me at a tutorial or more information on this please? thank you Sandy

mod_rewrite for both subdomain and query string - Hi there, I have a rewrite rule that redirects x.domain.com to domain.com/ home.php?stSubdomain=x which works fine. RewriteRule ^([a-zA-Z0-9\-]*)$ home.php?strSubdomain=$1 I need to have it so that i can use x.domain.com/cid?xxxx (xxxx can be any..
   Web Hosting Problem Solving Community! (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]