in reply to SSI or .HTACCESS for CGI
See in my databse I have it so each category has its url so heres and example$a = $ENV{REQUEST_URI}; $a =~ s|(/.*/)|$1|i; $a = $1; $sth = $dbh->prepare("SELECT * FROM category WHERE url=?"); $rows = $sth->execute($a);
See how would I make it so they went to the url without a trailing slash like http://someurl.com/shop/Snowmobile/AccesoriesCategory: Accessories URL: /Snowmobile/Accesories/
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: SSI or .HTACCESS for CGI
by Kanji (Parson) on Nov 10, 2002 at 19:37 UTC |