Hi guys
I desperately need help with the following:
A. I have this working fine
<a href="news_<?=$id?>.html" class="newscontent" target="<?=$target?>"><?=$title?></a>
it produces link "http://www.mysite.com/news_1.html" instead of "http://www.mysite.com/news_content.php?oid=$1"
then using .htaccess
"RewriteRule ^news_([0-9]+)\.html$" "http://www.mysite.com/company_news_content.php?oid=$1"
B. I want to make it work displaying the <?=$title?> in the link. So if the title in the MySql is something like "Obama is America's new PRESIDENT"
<a href="<?=$title?>_<?=$id?>.html" class="newscontent" target="<?=$target?>"><?=$title?></a>
it gives me link "http://www.mysite.com/Obama%20is%20America's%20new%20PRESIDENT_1.html"
now how should design the rewrite rule so it goes
"RewriteRule ^(?)_([0-9]+)\.html$" "http://www.mysite.com/company_news_content.php?oid=$1"