search engine friendly URLs problem..help
Posted: Sat May 03, 2008 9:43 pm
Hi there,
I am trying to implement search engine friendly URLs on my website. I have a .htaccess file in the root of my server with the following rewrite rule,
However, when I try to call my dynamic pages like mydomain/portfolio.php/page/2 , I get an error saying "No input file specified."
Am I missing something?
On my portfolio.php page, I have an if condition as below:
I would appreciate some assistance, thanks...
I am trying to implement search engine friendly URLs on my website. I have a .htaccess file in the root of my server with the following rewrite rule,
Code: Select all
Options +FollowSymLinks
RewriteEngine on
RewriteRule portfolio/page/(.*)/ portfolio.php?page=$1
RewriteRule portfolio/page/(.*) portfolio.php?page=$1
Am I missing something?
On my portfolio.php page, I have an if condition as below:
Code: Select all
if(isset($_GET['page']))
{
$pageNum = $_GET['page'];
}