httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "thomas Armstrong" <tarmstr...@gmail.com>
Subject Re: [users@httpd] 'domain.com/foo' = 404 but 'domain.com/foo/' works fine
Date Wed, 12 Dec 2007 14:41:06 GMT
Hi Eric. Thank you very much for you answer.

I typed:
-------------
RewriteRule ^([^/]+)/*$ /page.php?id=$1 [L]
-------------
and got 500 error message on every page on my website. The same with:

---------------
RewriteRule ^([^/]+)/?$ /page.php?id=$1 [L]
--------------------

Regards,
--Thomas


On Dec 12, 2007 1:31 PM, Eric Covener <covener@gmail.com> wrote:
> On Dec 12, 2007 7:18 AM, thomas Armstrong <tarmstrong@gmail.com> wrote:
> > Hi.
> >
> > I created this .htaccess:
> > -----
> > RewriteRule ^([^/]+)/$ /page.php?id=$1 [L]
> > -------
> >
> > And it works fine with:
> > http://domain.com/foo/ (it shows a webpage)
> >
> > But it shows a 404 error page with:
> > http://domain.com/foo
>
> Looks like ending your pattern in /?$ or /*$ would allow you to throw
> away 0 or more trailing slashes.
>
> --
> Eric Covener
> covener@gmail.com
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message