diff --git a/class.tx_forcerealurls.php b/class.tx_forcerealurls.php new file mode 100644 index 0000000..0d0e89a --- /dev/null +++ b/class.tx_forcerealurls.php @@ -0,0 +1,22 @@ +siteScript && $pObj->config['config']['tx_realurl_enable'] && ( + substr($pObj->siteScript, 0, 9) == 'index.php' || + substr($pObj->siteScript, 0, 1) == '?' + )) { + $baseURL = $pObj->config['config']['baseURL']; + $LD = $pObj->tmpl->linkData($pObj->page,'',$pObj->no_cache,'','',t3lib_div::getIndpEnv('QUERY_STRING')); + $url = $baseURL.$LD['totalURL']; + + header('HTTP/1.1 301 Moved Permanently'); + header('Location: '.$url); + + exit; + } + } +} + +?> \ No newline at end of file diff --git a/doc/manual.sxw b/doc/manual.sxw new file mode 100644 index 0000000..553e542 Binary files /dev/null and b/doc/manual.sxw differ diff --git a/ext_emconf.php b/ext_emconf.php new file mode 100644 index 0000000..72a08b6 --- /dev/null +++ b/ext_emconf.php @@ -0,0 +1,52 @@ + 'Force RealURLs', + 'description' => 'Checks if a page is trying to be accessed by an old style URL, and does a 301 redirect to the appropriate URL if so', + 'category' => 'fe', + 'shy' => 0, + 'version' => '0.1.0', + 'dependencies' => '', + 'conflicts' => '', + 'priority' => '', + 'loadOrder' => '', + 'module' => '', + 'state' => 'beta', + 'uploadfolder' => 0, + 'createDirs' => '', + 'modify_tables' => '', + 'clearcacheonload' => 0, + 'lockType' => '', + 'author' => 'Christian Jul Jensen', + 'author_email' => 'julle(at)typo3.org', + 'author_company' => '', + 'CGLcompliance' => NULL, + 'CGLcompliance_note' => NULL, + 'constraints' => + array ( + 'depends' => + array ( + 'cms' => '', + 'php' => '3.0.0-0.0.0', + 'typo3' => '3.7.0-0.0.0', + ), + 'conflicts' => + array ( + ), + 'suggests' => + array ( + ), + ), +); + +?> \ No newline at end of file diff --git a/ext_icon.gif b/ext_icon.gif new file mode 100644 index 0000000..dca1b19 Binary files /dev/null and b/ext_icon.gif differ diff --git a/ext_localconf.php b/ext_localconf.php new file mode 100644 index 0000000..fffcc01 --- /dev/null +++ b/ext_localconf.php @@ -0,0 +1,3 @@ +check'; +?> \ No newline at end of file