You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by kr...@iNetwebz.com on 2003/02/27 17:42:33 UTC

[users@httpd] upgrading and clean urls

i'm trying to migrate from apache 1.3 to 2.0, but am having problems with
one site.  it [the site] is currently designed (and working) with clean
urls.

for example, a request for /products/wood should return all the wood
products from the database. 

in the site root there exists a php file "products" and an .htaccess file
which looks like: 
<FilesMatch "^products$"> 
    ForceType application/x-httpd-php 
</FilesMatch> 

my apache 2.0 configuration includes a directive "AllowOverride all" which
(please correct me if i'm wrong) is what allows the use of the .htaccess
file, and another directive "Options +Multiviews".  (i don't know what that
does, it was in my 1.3 config file so i thought it might help.)

apache 1.3 is sending the requests to the products file and using php to
parse the remainder of the url like it should.  however, with apache 2.0 i'm
getting errors like "The requested URL /products/Wood was not found on this
server."

if i send a request for just /products, it parses it as php and gives me the
default category (equivalent to /products/Glass) just fine.

any help, suggestions, or ideas would be appreciated.  thanks, 
kevin

---------------------------------------------------------------------
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


Re: [users@httpd] upgrading and clean urls

Posted by Joshua Slive <jo...@slive.ca>.

On Thu, 27 Feb 2003 krc@iNetwebz.com wrote:
> apache 1.3 is sending the requests to the products file and using php to
> parse the remainder of the url like it should.  however, with apache 2.0 i'm
> getting errors like "The requested URL /products/Wood was not found on this
> server."
>
> if i send a request for just /products, it parses it as php and gives me the
> default category (equivalent to /products/Glass) just fine.

See:
http://httpd.apache.org/docs-2.0/mod/core.html#acceptpathinfo

Joshua.

---------------------------------------------------------------------
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