Ask Any Question
PHP question, url rewriting for on the fly pages required:?
jam - 2007-11-20 10:54:39 - Programming Design
Hi From my pagination.php page my pages are produced as follows: print "<a href=new.php?id=\"$row->id\">$row->title amp; lt;/A>"; But once licked, in the address bar i get my new.php pages opening as: http://mpc/new.php?id="98" http://mpc/new.php?id="99" etc... new.php accepts parameter as follows: <?php include("db/db_config.php"); if(isset($_GET["id"])) { $id = $_GET["id"]; $sql = "SELECT * FROM articles WHERE id = $id"; } $_GET["id"] LIMIT 1"; $rs = mysql_query($sql) or die(mysql_error()); etc............. How do i make my page url's appearing in address bar: http://mpc/new.php?id="98" http://mpc/new.php?id="99" as .html names? I mean i have literally 3-4 thousand, can i do this using a software? so search engines will index all my links? I found no free version of : IIS Mod-Rewrite Pro, even tried searching torents, my server = iis, on localhost Kind Regards Thanks in advance Tovia S
Best Answer:
Okie ... For IIS you need an ISAPI module to enable URL Rewriting. More Details http://www.isapirewrite.com/ http://www.micronovae.com/ModRewrite/ModRewrite.html After that you could use any online URL Rewriting/.htaccess generator tools to generate .htaccess and sample URL's.. Example below http://www.linkvendor.com/seo-tools/url-rewrite.html http://www.pcaccessoriesparts.com/tools/free-online-mod-rewrite-tool/ http://www.webmaster-toolkit.com/mod_rewrite-rewriterule-generator.shtml Then just replace the .htaccess file or add the rules to the one you have and change the links voillah. Have fun!
Answers:
| Visit: |
|
| © 2007 Love2Run.com |

