Can any body help with this mad rewrite

Discuss practical ways rearrange URLs using mod_rewrite.

Can any body help with this mad rewrite

Postby Guest » Mon Dec 13, 2004 7:43 am

Hi, this is my first time on this forum, looks like a great resource,

anyway to my point..

Last month I downloaded the biz directory script.

I made change to the script that friend recommend to turn pages from php to html, one problem is I dont know how to change the add_url pages to html.

below is the code tht needs to change to make the pages htmlnot php


$current_category["name"], "[SUBMISSION_URL]" => $dir.'add_url.php?c='.$c);

can any body help?
Guest
 

Postby Caterham » Mon Dec 13, 2004 8:03 am

Hi,

may be this link can help you

http://translate.google.com/translate?u ... al_03.html

8)

and just for "add_url"
may be to get add_url-ID.html
Code: Select all
$dir.'add_url-'.$c.'.html');


Then you'll have to add
Code: Select all
RewriteRule ^add_url-([0-9]+)\.html$ add_url.php?c=$1
in your .htaccess file

Bob
Caterham
 
Posts: 690
Joined: Fri Dec 10, 2004 1:30 pm


Return to Friendly URLs with Mod_Rewrite

Who is online

Users browsing this forum: No registered users and 20 guests

cron