Project

General

Profile

Actions

Bug #14485

closed

detecting lib_div::getIndpEnv(SCRIPT_NAME)

Added by Ingo Schmitt almost 20 years ago. Updated over 18 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend API
Target version:
-
Start date:
2005-01-11
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
3.7.0
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

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)

Actions #1

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..(?)

Actions #2

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

Actions #4

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.

Actions

Also available in: Atom PDF