i'm having a few problems with this need help.
i set up the .htaccess file in my root dir
RewriteEngine On
RewriteRule ^.*L([0-9]+)/?$ \/sql212\/page.cgi?g=Detailed\/$1\.shtml [L]
I replaced the url in the links.html to
<a href="<%rewrite_url($ID,$Title)%>"><%Title%></a>
and i added the exact global
sub { my $ID = shift; my $Title = shift; my $cats = $DB->table('Links')->get_categories($ID); my ($cat_id,$cat_full_name) = each %$cats; my $cat_url = $DB->table('Category')->as_url($cat_full_name); $Title =~ y/ \t\r\n?"'#/__/d; return '/' . $cat_url . '/' . $Title . '_L' . $ID . '/'; }
when i have build detailed turned on i get normal detail links
when i have it turned off i get
http://mysite.com/...ag:%20'detailed_url'
I'm not sure where the problem is. I have tried different variations of the rewrite htaccess from this post without any luck. I have changed the original setup url extension to .shtml
htaccess is in my root file with the Detailed directory
i set up the .htaccess file in my root dir
RewriteEngine On
RewriteRule ^.*L([0-9]+)/?$ \/sql212\/page.cgi?g=Detailed\/$1\.shtml [L]
I replaced the url in the links.html to
<a href="<%rewrite_url($ID,$Title)%>"><%Title%></a>
and i added the exact global
sub { my $ID = shift; my $Title = shift; my $cats = $DB->table('Links')->get_categories($ID); my ($cat_id,$cat_full_name) = each %$cats; my $cat_url = $DB->table('Category')->as_url($cat_full_name); $Title =~ y/ \t\r\n?"'#/__/d; return '/' . $cat_url . '/' . $Title . '_L' . $ID . '/'; }
when i have build detailed turned on i get normal detail links
when i have it turned off i get
http://mysite.com/...ag:%20'detailed_url'
I'm not sure where the problem is. I have tried different variations of the rewrite htaccess from this post without any luck. I have changed the original setup url extension to .shtml
htaccess is in my root file with the Detailed directory