Bug #14485
closeddetecting lib_div::getIndpEnv(SCRIPT_NAME)
0%
Description
When using mod_rewrite for Real_url 2.0 doing the configuration dirctly in the httpd.conf typo3 doesnt get the script name directly. Using Modrewrite with configuration in .htacces TYPO3 detectes the SCRIPT_NAME correctly
If you configure mod_rewrite in the httpd the global
$_SERVER['SCRIPT_NAME'] is set to '/path/path2/index.html'
If you configure mod_rewrite in .htaccess
_SERVER['SCRIPT_NAME'] is set to 'index.php'
As t3lib_div::getIndpEnv(SCRIPT_NAME) is used to detect the path name for real_url we always get the wrong path and T3 is showing the wrong page:-(
Running Apache/1.3.27 , PHP 4.3.4 on Linux xxxx 2.4.20-64GB-SMP #1 SMP Thu Jul 29 18:16:34 UTC 2004 i686
(issue imported from #M672)
Updated by Wolfgang Klinger almost 20 years ago
What's the value of SCRIPT_NAME in your case?
Make sure that your rewrite rules work with httpd.conf (there are differences!)
Maybe we should discuss this first on any of the mailing lists..(?)
Updated by Ingo Schmitt almost 20 years ago
SCRIPT_NAME should be the name of your primary TYPO3 script, normally index.php.
in my case, when accessing page /xxx/yyy/zzz/foo_bar.html it was foo_bar.html
Updated by Mathias Schreiber over 18 years ago
TYPO3 Version too old.
The reported version is no longer maintained.
If this bug still persists in 4.0.1, please re-open it again and set the field "Product Version" to the corresponding version.