David thanks for your help. I'm still getting a 500 error but I know
the .htaccess is ok now because I tried running another test script
without trouble. This is what I have:

web root
    admin

I want to URL to look like this: www.website.com/admin/categories/123
The .htaccess file AND dispatch script are in the admin folder.

RewriteEngine on
RewriteBase /admin
RewriteRule ^(.*)$ dispatch.cgi/$1 [L,QSA]

Like I said the rewrite rules should be fine now.. so it must be
something to do with the code in the dispatch script to correct the
PATH_INFO. But I don't really understand them!

Rob
- Hide quoted text -

On 13/05/07, David Baxter <[EMAIL PROTECTED]> wrote:
Hi Rob,

I'm no expert at mod_rewrite, but to me it looks like your rewrite rule
would change:

www.website.com/admin/categories/edit/123

to

www.website.com/admin/dispatch.cgi/admin/categories/edit/123

If your rewrite rules are in a .htaccess file in your /admin directory,
you need to change the RewriteBase line to:

RewriteBase /admin

Hope that works for you.

Regards,

David

---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/[email protected]/
             http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to