Ok I will try to explain how my website is built and how i have my links set up.
first of all we are a content based website witch around 6000 articles.
articles will be displaied either on a premium page (you need to have subscribed to it) or on a reular page.
there are three different places where i would like to have articles appear.
http://www.paris-marketplace.com/pages/articles.php
http://www.paris-marketplace.com/ttest/premiumarticles.php
http://www.paris-marketplace.com/premium/premiumarticles.php
so far all the articles appear in the correct place. but when i link to an article which is generated by the database the URL looks like this:
http://www.paris-marketplace.com/pages/articles.php?articleId=123
http://www.paris-marketplace.com/premium/premiumarticles.php?articleId=123
so what i am trying to do is to get rid off the ?articleID=123 and have it written as
http://www.paris-marketplace.com/pages/articles.php/123
http://www.paris-marketplace.com/premium/premiumarticles.php/123
I found a lot of resources but i don't know how I have to put this into my scripts.
i think that i have to change the code in this part of my funtions but i don't know how and if and ????
i only wrote down the lines I think i need to change. but once i have changed this I am not sure how the browser will know what i told them to do. i think i dont' have the rewrite module. so i guess i need to do something with the htaccess file. but again. this is my vary first php page and i guess it is the last one i will ever do ;-(
<a href="http://www.paris-marketplace.com/premium/premiumarticles.php?articleId=<?php echo $aRow["pk_aId"]; ?>"><span class="BodyHeading1"><?php echo $aRow["aTitle"]; ?></span></a><span class="BodyHeading1"><br></span>
<a href="http://www.paris-marketplace.com/premium/premiumarticles.php?articleId=<?php echo $aRow["pk_aId"]; ?>"><span class="Link1">Read Full Article</span></a>
|
<a href="javascriptš®penWin('printpage.php?articleId=<?php echo $aRow["pk_aId"]; ?>', 'prnArt', '650', '550', 'yes')"><span class="Link1">Print Article</span></a>
<a href="http://www.paris-marketplace.com/pages/articles.php?articleId=<?php echo $aRow["pk_aId"]; ?>"><span class="BodyHeading1"><?php echo $aRow["aTitle"]; ?></span></a><span class="BodyHeading1"><br></span>
<a href="http://www.paris-marketplace.com/pages/articles.php?articleId=<?php echo $aRow["pk_aId"]; ?>"><span class="Link1">Read Full Article</span></a>
I would really appreicate if anybody could help me out of this problem.
thank you so much for looking into this.
andrea