Hello,
I've been using this on my development server.
Code:
RewriteEngine on
RewriteRule ^([A-Za-z0-9-]+)/([A-Za-z0-9-]+)/([0-9]+)/?([_\-=&A-Za-z0-9]+)?$ Index.php?tableName=$1&tableAction=$2&recordId=$3&$4 [L]
However, when I move to my production server (which doesn't provide me access to error logs), It doesn't work, I get Internal Server Errors.
I think it has to do with my very last part
Code:
([_\-=&A-Za-z0-9]+)?$
I'm trying to do the following (with the .htaccess placed in /directory/)
http://www.site.com/directory/somestrin ... uerystringand
http://www.site.com/directory/something ... somenumberalso with an optional trailing / on the above
Where it will pass values to a querystring so that
?tableName=something&tableAction=somethingelse&recordId=somenumber&somequerystring
Does anyone know how to do this better, or atleast do this in a way that is gauranteed to work on all servers.
(My code works properly on my development server)
Thanks for any help you can provide, jeb.