View Single Post
Old 07-16-2008, 11:14 PM   #13 (permalink)
CoryMathews
The Addict
 
CoryMathews's Avatar
 
Join Date: Nov 2007
Location: USA
Posts: 256
Thanks: 7
CoryMathews is on a distinguished road
Default

ye sorry i meant moreinfo/p/11 even if i use a number with no correct info I get the same No input file specified.

I have created a test page online to help with this. The link is http://www.osguide.net/test/test.php?$p=1

and this link should work
http://www.osguide.net/test/test/p/1/


Here is the .htaccess file

Code:
Options +FollowSymLinks
RewriteEngine on
RewriteBase /
RewriteRule /test/test/(.*)/(.*)/$ /test.php?$1=$2
and the php page

PHP Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<base href="http://www.osguide.net" />
</head>
<?php
if(is_numeric($_GET['p'])) {
        
$id $_GET['p'];
        echo 
$id;
}
?>
 This was a test.
<body>
</body>
</html>
CoryMathews is offline  
Reply With Quote