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'];
}