Hi Jamie, well it only seems to work if I use the htaccess code AND then change my PHP code
FROM
<a href="../category.php?Categories=<?php echo $row_Catg['CategoryLink']; ?>"><?php echo $row_Catg['CategoryName']; ?></a>
TO
<a href="../<?php echo $row_Catg['CategoryLink']; ?>"><?php echo $row_Catg['CategoryName']; ?></a>
So removing ../category.php?Categories= from ALL my links on my website.
But surely that cant be right as what IF I had a website with 100's of pages that reference categories...that would mean i would then need to manually change ALL my links sitewide. plus I also have references to ../category.php?Categories=Some-Category-Name in my database to dynamically display additional content that relates to that particular page...this would then mean I would need to manually eidt my database records and removing all references to category.php?Categories=
So is this the only way to do it?
I assumned that if I have a website that was referencing links as ../category.php?Categories=<?php echo $row_Catg['CategoryLink']; ?> that HTACCESS would just convert that php into SEO friendly URLS. or have I completely got this logic wrong?
As mentioned it does work if I do also change my php links...but it means if i do the same for products eg
Options +FollowSymlinks
Options -Multiviews
RewriteRule ^([^/.]+)/?$ /category.php?Categories=$1 [NC]
RewriteRule ^([^/.]+)/?$ /product.php?Product=$1 [NC]
I get this error:
the error message is referencing this code on line 81 : mysql_data_seek($rsProducts,0);
I'm attaching both products.php and category.php files to show php code in context (as well as a header plugin that displays my menu links for categories).
I would be grateful if you or anyone could help me get the products links working the same method as the categories as I dont know how to fix the above php error message.
Kind regards
Chris