Hi,
Up until now I have been using the following .htaccess content:
RewriteEngine On
RewriteCond %{REQUEST_URI} !\/$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^robots\.txt$
RewriteRule ^([^/]+)/? index.php?p=$1 [L,QSA]
There has been no issue with the way it works until I want to do something more.
Example of my webpages:
index.php
home.php
contact.php
video.php
music.php
include/header.php
include/footer.php
My "index.php" pulls the pages in using switch:
$page = isset($_GET['p']) ? $_GET['p'] : 'home';
switch($page) {
case etc etc........
include('include/header.php');
include(''.$page.'.php');
include('include/footer.php');
Now the problem I have is within the "video.php" file I have a link that goes to another file within a directory folder. The folder location is:
/video/newlist.php
But the problem I have is when I select the "video.php" link it takes me to the video folder and not the file called "video.php"
Is there anyway around this?