Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
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.
| |
|
Topic: mod_rewrite and regexpression with dot |
|
Author |
|
commentator
Joined: 16 Jul 2007 Posts: 1
|
Posted: Mon 16 Jul '07 21:15 Post subject: mod_rewrite and regexpression with dot |
|
|
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
|
|
Back to top |
|
|
|
|
|
|