Welcome to WebmasterWorld Guest from 54.167.0.111

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

change the server, mod_rewrite pages dont work

digged into the code and discovered $PATH_INFO is always null

     

dopecoder

7:28 pm on Jun 16, 2006 (gmt 0)

10+ Year Member



would it be the php version? the new server is running php 4.4.1?

i also read on the net that sometimes servers are setup to return empty $PATH_INFO for security reasons, so is it setup on the server?

Its definitely not the code cause the url is like ...index.php/widget-details-1234.html and $PATH_INFO should return /widget-details-1234.html, however it is empty.

any help to debug this will be appreciated

eelixduppy

8:47 pm on Jun 16, 2006 (gmt 0)

WebmasterWorld Senior Member eelixduppy is a WebmasterWorld Top Contributor of All Time 5+ Year Member



Try $_SERVER["REQUEST_URI"]

dopecoder

10:42 pm on Jun 16, 2006 (gmt 0)

10+ Year Member



thanks eelixduppy,

had to change bit of code but that worked for me.

just for curiosity, would anyone know why $PATH_INFO would not work

 

Featured Threads

Hot Threads This Week

Hot Threads This Month