Commit ab08b715 authored by Kevin Ditscheid's avatar Kevin Ditscheid

[BUGFIX] Default case sensitive and htaccess export

parent bd6d3e0a
......@@ -452,7 +452,10 @@ class RoutingService {
if ($route['use_regular_expression']) {
$directive = 'RedirectMatch';
}
$htaccessEntries .= $directive . ' ' . $route['redirect_code'] . ' ' . $route['source_url'] . ' '
if (!$route['source_url_case_sensitive']) {
$directive = 'RedirectMatch';
}
$htaccessEntries .= $directive . ' ' . $route['redirect_code'] . ' ' . ($route['source_url_case_sensitive'] ? '' : '(?i)') . $route['source_url'] . ' '
. $route['destination_url'] . LF;
}
}
......
......@@ -7,7 +7,7 @@ CREATE TABLE tx_sgroutes_domain_model_route (
use_regular_expression tinyint(4) unsigned DEFAULT '0' NOT NULL,
source_url varchar(255) DEFAULT '' NOT NULL,
source_url_case_sensitive tinyint(4) unsigned DEFAULT '0' NOT NULL,
source_url_case_sensitive tinyint(4) unsigned DEFAULT '1' NOT NULL,
destination_url varchar(255) DEFAULT '' NOT NULL,
redirect_url_parameters tinyint(4) unsigned DEFAULT '0' NOT NULL,
redirect_code varchar(255) DEFAULT '301' NOT NULL,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment