SearchSearch   

htaccess problem?

 
   Webmaster Forums (Home) -> Apache RSS
Next:  [error] [client x.x.x.x] File does not exist: /ho..  
Author Message
Michael

External


Since: Jul 07, 2007
Posts: 1



(Msg. 1) Posted: Sat Jul 07, 2007 2:38 pm
Post subject: htaccess problem?
Archived from groups: alt>apache>configuration (more info?)

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
Back to top
petersprc

External


Since: Jul 02, 2007
Posts: 49



(Msg. 2) Posted: Mon Jul 09, 2007 12:53 am
Post subject: Re: htaccess problem?
Archived from groups: per prev. post (more info?)

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 <michael.at.gmail.dot.com> 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
Back to top
Display posts from previous:   
       Webmaster Forums (Home) -> Apache
Page 1 of 1

 
You cannot post new topics in this forum
You cannot 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