htaccess Elite

.htaccess tutorial


All times are UTC [ DST ]





Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Doesn't work on another server.
PostPosted: Jun 5th, '08, 18:50 
Offline

Joined: Jun 5th, '08, 18:43
Posts: 1
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 ... uerystring
and
http://www.site.com/directory/something ... somenumber
also 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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 11 guests


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 post attachments in this forum

Search for:
Jump to:  
Powered by phpBB