Hi.
I am using the rewrite rule global as suggested by yogi, all works too well in static mode. Also reading somewhere on GF forum regarding 128 limit on url lebgth by google for indexing, i have the same with url rewritten to:
http://somsite.com/...Unique_ID_Title_LXXX
where Some_Unique_ID is a custom column added to the Links table and the same also appears on title.
The prev and next links have also been rewritten. However, in dynamic mode, the rewritten url fails. Could the same be made to work in dynamic mode too. currently my rewrite in httpd.conf is as follows:
RewriteEngine On
RewriteRule ^.*L([0-9]+)/?$ /Detailed/$1.html [L]
and the rewrite_url global is as follows:
my $ID = shift;
my $Title = shift;
my $LocatorID = shift;
$Title =~ y/ \t\r\n?"'#/__/d;
$LocatorID =~ y/ \t\r\n?"'#/__/d;
return $CFG->{build_detail_url} . '/' . "Locator" . "_ID" . "_" . $LocatorID . "_" . $Title . '_L' . $ID . '/';
}
Called in template as <%rewrite_url($ID,$Title,$LocatorID)%>
The problem in dynamic mode is that it comes up with a 404 error like this:
Unable to find detailed page: 'Detailed/Locator_ID_ASFXFX_Site_Title_L41/
Could this be made to work both in static as well as dynamic mode? What do i need to change?
TIA
Anup
I am using the rewrite rule global as suggested by yogi, all works too well in static mode. Also reading somewhere on GF forum regarding 128 limit on url lebgth by google for indexing, i have the same with url rewritten to:
http://somsite.com/...Unique_ID_Title_LXXX
where Some_Unique_ID is a custom column added to the Links table and the same also appears on title.
The prev and next links have also been rewritten. However, in dynamic mode, the rewritten url fails. Could the same be made to work in dynamic mode too. currently my rewrite in httpd.conf is as follows:
RewriteEngine On
RewriteRule ^.*L([0-9]+)/?$ /Detailed/$1.html [L]
and the rewrite_url global is as follows:
Quote:
sub { my $ID = shift;
my $Title = shift;
my $LocatorID = shift;
$Title =~ y/ \t\r\n?"'#/__/d;
$LocatorID =~ y/ \t\r\n?"'#/__/d;
return $CFG->{build_detail_url} . '/' . "Locator" . "_ID" . "_" . $LocatorID . "_" . $Title . '_L' . $ID . '/';
}
Called in template as <%rewrite_url($ID,$Title,$LocatorID)%>
The problem in dynamic mode is that it comes up with a 404 error like this:
Unable to find detailed page: 'Detailed/Locator_ID_ASFXFX_Site_Title_L41/
Could this be made to work both in static as well as dynamic mode? What do i need to change?
TIA
Anup