We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Problem with URL Parameters and Pages Module EE2.2.2

Development and Programming

Chris Arasin's avatar
Chris Arasin
26 posts
14 years ago
Chris Arasin's avatar Chris Arasin

I’m trying to crete a URL with the Pages module that has a parameter in the page URL field. When I enter the url into the browser address bar I get a 404 error. I set the uri_protocol to ‘PATH_INFO’ and set enable_query_strings = true.

The url I’m trying to enter in the page URI field is: /sparks?param1=code10

Thank you for your help!

       
the3mus1can's avatar
the3mus1can
426 posts
14 years ago
the3mus1can's avatar the3mus1can

What is in your .htaccess file?

       
Chris Arasin's avatar
Chris Arasin
26 posts
14 years ago
Chris Arasin's avatar Chris Arasin

Currently trying to work it out with an empty htaccess file.

       
the3mus1can's avatar
the3mus1can
426 posts
14 years ago
the3mus1can's avatar the3mus1can

Good idea. Have you tried a uri_protocol of REQUEST_URI?

If yes, can you provide the output of var_dump($_SERVER) and var_dump($_GET)?

       
Chris Arasin's avatar
Chris Arasin
26 posts
14 years ago
Chris Arasin's avatar Chris Arasin
SERVER
array(31) {
  ["HTTP_HOST"]=>
  string(21) "beta.sparksonline.com"
  ["HTTP_CONNECTION"]=>
  string(10) "keep-alive"
  ["HTTP_USER_AGENT"]=>
  string(117) "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.215 Safari/535.1"
  ["HTTP_ACCEPT"]=>
  string(63) "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
  ["HTTP_ACCEPT_ENCODING"]=>
  string(17) "gzip,deflate,sdch"
  ["HTTP_ACCEPT_LANGUAGE"]=>
  string(14) "en-US,en;q=0.8"
  ["HTTP_ACCEPT_CHARSET"]=>
  string(30) "ISO-8859-1,utf-8;q=0.7,*;q=0.3"
  ["HTTP_COOKIE"]=>
  string(540) "__utma=232416733.188729924.1311352936.1314892724.1315339780.5; __utmc=232416733; __utmz=232416733.1315339780.5.5.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=sparks online; exp_last_visit=1315573843; exp_last_activity=1315581729; exp_anon=1; exp_expiration=1315581730; exp_tracker=a:5:{i:0;s:5:"index";i:1;s:25:"full-pages/company_code10";i:2;s:10:"full-pages";i:3;s:6:"sparks";i:4;s:4:"site";}; exp_sessionid=6326cf83574f252f888bc4b216cb14c97b026d32"
  ["PATH"]=>
  string(28) "/usr/local/bin:/usr/bin:/bin"
  ["SERVER_SIGNATURE"]=>
  string(81) "
Apache/2.2.9 (Debian) Server at beta.sparksonline.com Port 80

"
  ["SERVER_SOFTWARE"]=>
  string(21) "Apache/2.2.9 (Debian)"
  ["SERVER_NAME"]=>
  string(21) "beta.sparksonline.com"
  ["SERVER_ADDR"]=>
  string(14) "74.208.226.165"
  ["SERVER_PORT"]=>
  string(2) "80"
  ["REMOTE_ADDR"]=>
  string(12) "69.253.8.168"
  ["DOCUMENT_ROOT"]=>
  string(39) "/home/www/beta.sparksonline.com/htdocs/"
  ["SERVER_ADMIN"]=>
  string(26) "[email protected]"
  ["SCRIPT_FILENAME"]=>
  string(48) "/home/www/beta.sparksonline.com/htdocs/index.php"
  ["REMOTE_PORT"]=>
  string(5) "65212"
  ["GATEWAY_INTERFACE"]=>
  string(7) "CGI/1.1"
  ["SERVER_PROTOCOL"]=>
  string(8) "HTTP/1.1"
  ["REQUEST_METHOD"]=>
  string(3) "GET"
  ["QUERY_STRING"]=>
  string(0) ""
  ["REQUEST_URI"]=>
  string(16) "/index.php/site/"
  ["SCRIPT_NAME"]=>
  string(10) "/index.php"
  ["PATH_INFO"]=>
  string(6) "/site/"
  ["PATH_TRANSLATED"]=>
  string(44) "/home/www/beta.sparksonline.com/htdocs/site/"
  ["PHP_SELF"]=>
  string(16) "/index.php/site/"
  ["REQUEST_TIME"]=>
  int(1315584478)
  ["argv"]=>
  array(0) {
  }
  ["argc"]=>
  int(0)
}
GET
array(0) {
}
       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.