|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
|||
|
|||
|
Problems with param passing
I have a script written by someone else running ok on server1, but creating 404-s on server2... the problem is clear, instead of using a structure like http://myserver/myscript.php?var=value he uses
http://myserver/myscript.php/var/value ... for some reason it works on one server, but not on the second one... since the script contains quite some codelines, I would prefer to get it running by modifiing the settings of Apache or PHP (which one ???) instead of modifiing the script. Does anyone know where to edit it ??? |
|
#2
|
|||
|
|||
|
RE: Problems with param passing
Its that on server1 URL rewriting rules are added in Apache. You can use mod_rewrite in Apache without modifying your scripts. Here are some helpful links abbout mod_rewrite.
http://httpd.apache.org/docs/misc/rewriteguide.html http://www.sitepoint.com/article/910 |
|
#3
|
|||
|
|||
|
RE: Problems with param passing
First back up your httpd.conf
Then find these lines #LoadModule rewrite_module modules/mod_rewrite.so #AddModule mod_rewrite.c remove the pound sign (#) and restart apache I think this may work for you... Maybe? RewriteRule /var/([a-z]+) /myscript.php?id=$1 If not let me know the values if they are number or text and I will try to get it for you. I have used mod_rewrite very little but I understand it |
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Installation > Problems with param passing |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|