Hi..i originally posted this in the wrong forum for what i wanted to achieve, so here goes....
I have changed the htaccess file so this;
changes to this;HTML Code:website.com/whatson.php?event_id=1&cat_name=comedy&event_name=some ones name
using:HTML Code:website.com/whatson/1-some ones name.htmlOne thing that i cant get my head around (and yes, ive been searching around for the last few days!)....what php code do i need to have to change the actual links in my webpage (below) to a seo friendly link?Code:<IfModule mod_rewrite.c> RewriteEngine On RewriteBase / rewriterule ^whatson/([^-]+)-([^&]+)\.html$ /whatson.php?event_id=$1&cat_name=$2&event_name=$3 [L] </IfModule>
....then obvioulsy i then need to change the values again for a mysql query (maybe this would be part 2 of the question!)Code:<a href="whatson.php<?php echo $row_main['event_id']; ?>&cat_name=<?php echo $row_main['cat']; ?> &event_name=<?php echo $row_main['eventname']; ?>"
...i hope someone could literally spell it out for me...thanks in advance




Bookmarks