logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: mod_rewrite and regexpression with dot
Author
commentator



Joined: 16 Jul 2007
Posts: 1

PostPosted: Mon 16 Jul '07 21:15    Post subject: mod_rewrite and regexpression with dot Reply with quote

Hi,

I'm trying to rewrite everything on my domain to a php file

Code:
RewriteRule ^([A-Za-z_0-9/]+)$ file.php/$1


this is working for directories now:

so http://my.dom.ain/dir1/dir2/ is redirected to file.php/dir1/dir2/

I want to use this also for files. When adding a dot like:
Code:
RewriteRule ^([A-Za-z_0-9/.]+)$ file.php/$1

or
Code:
RewriteRule ^([A-Za-z_0-9/\.]+)$ file.php/$1


it doesn't work. Anyone here knowing how to fix this?
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Fri 10 Aug '07 16:15    Post subject: Reply with quote

Please ask @ http://forum.modrewrite.com/
Back to top


Reply to topic   Topic: mod_rewrite and regexpression with dot View previous topic :: View next topic
Post new topic   Forum Index -> Apache