htaccess problem?
am 07.07.2007 16:38:30 von Michael
Hello all,
i've got a strange problem on my website on internet. Problem which doesn't
happen on my local computer.
I have created a htaccess file in the root of my site, which redirects all
requests to a file named web.php, so all my URL look like
www.movistats.fr/web.php/...
The problem is that when i type
www.movistats.fr/web.php => works
www.movistats.fr/web.php/FR/Sports/ => doesn't work
www.movistats.fr/web.php/FR/Sports/BB => doesn't work
www.movistats.fr/web.php/FR/Sports/BB/present => works
It seems that the web.php file is not used by the server when i don't specify
a real file in the URL (present for example)
My online website is hosted by OVH, a french provider...
Did anyone have that problem once?
Thanks in advance
Mike
Re: htaccess problem?
am 09.07.2007 02:53:01 von petersprc
With this config, only non-existent documents will be redirected to
web.php:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /web.php/$1 [L]
To pipe everything through web.php, you could use:
RewriteEngine on
RewriteCond %{REQUEST_URI} !^/web.php(/|$)
RewriteRule ^(.*)$ /web.php/$1 [L]
On Jul 7, 10:38 am, Michael wrote:
> Hello all,
>
> i've got a strange problem on my website on internet. Problem which doesn't
> happen on my local computer.
>
> I have created a htaccess file in the root of my site, which redirects all
> requests to a file named web.php, so all my URL look like
>
> www.movistats.fr/web.php/...
>
> The problem is that when i type
>
> www.movistats.fr/web.php=> workswww.movistats.fr/web.php/FR/Sports/=> doesn't workwww.movistats.fr/web.php/FR/Sports/BB=> doesn't workwww.movistats.fr/web.php/FR/Sports/BB/present=> works
>
> It seems that the web.php file is not used by the server when i don't specify
> a real file in the URL (present for example)
>
> My online website is hosted by OVH, a french provider...
>
> Did anyone have that problem once?
>
> Thanks in advance
>
> Mike