echo '<a href="/index.php?a=' . $some_a_var . '&b=' . $some_b_var . '">' . $_some_link_title . '</a>';
echo '<a href="/' . $some_a_var . '/' . $some_b_var . '/">' . $_some_link_title . '</a>';
<a href="productsincategories.php?ban=<?PHP echo $prod["pSection"]; ?>&cat=<?PHP echo $prod["pID"]; ?>" >
/productsincategories.php?ban=540&cat=HBWALKFITRSIZE%20F
/productsincategories-ban-540-cat-HBWALKFITRSIZE%20F.htm
<a href="productsincategories-ban-<?PHP echo $prod["pSection"]; ?>-cat-<?PHP echo $prod["pID"]; ?>.html>
.htm">
.html>
<?PHP echo str_replace(array(' ', '%20'), '+', $prod["pID"]); ?>
<?PHP echo $prod["pID"]; ?>
RewriteEngine on
RewriteRule categories_and_featured_products-pid-(.*)\.html$ categories_and_featured_products.php?pid=$1
RewriteRule subcategories_and_featured_products-pid-(.*)-cid-(.*)\.html$ subcategories_and_featured_products.php?pid=$1&cid=$2
RewriteRule productsincategories-ban-(.*)-cat-(.*)\.html$ productsincategories.php?ban=$1&cat=$2
RewriteRule products-ban-(.*)-cat-(.*)\.html$ products.php?ban=$1&cat=$2
Return to Friendly URLs with Mod_Rewrite
Users browsing this forum: No registered users and 4 guests