Kod
$_SERVER['REQUEST_URI']
Chodzi bowiem o to iż moje oprogramowanie bazuje na REQUEST_URI (kontroler/metoda/arg1/arg2/arg3/itd), gdy umieszczę aplikację w folderze subdomeny
np. test to poprzez REQEUST_URI uzyskuje coś takiego "test/kontroler/metoda/arg1/arg2/arg3/itd), chciałbym wyeliminować wczytywanie katalogu z urla do request_uri.
Kombinowałem w PHP, aby ująć ten folder przez str_replace lecz nie jest to uniwersalne wyjście (w razie przerzucenia aplikacji na folder główny), kombinowałem też
z .htaccess'em lecz bez większych sukcesów.
Mój obecny .htaccess prezentuje się tak:
Kod
# Turn on URL rewriting / Wlaczenie modulu apache Rewrite
RewriteEngine On
# Installation directory / URL aplikacji (!)
RewriteBase /katalog_wewnatrz_subdomeny/
# Protect hidden files from being viewed
<Files .*>
Order Deny,Allow
Deny From All
</Files>
# Protect application and system files from being viewed
RewriteRule ^(?:application|system)\b.* index.php/$0 [L]
# Allow any files or directories that exist to be displayed directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# Rewrite all other URLs to index.php/URL
RewriteRule .* index.php/$0 [PT]
RewriteEngine On
# Installation directory / URL aplikacji (!)
RewriteBase /katalog_wewnatrz_subdomeny/
# Protect hidden files from being viewed
<Files .*>
Order Deny,Allow
Deny From All
</Files>
# Protect application and system files from being viewed
RewriteRule ^(?:application|system)\b.* index.php/$0 [L]
# Allow any files or directories that exist to be displayed directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# Rewrite all other URLs to index.php/URL
RewriteRule .* index.php/$0 [PT]
Z góry dziękuję za pomoc. Pozdrawiam.
Nikt nic nie pomoże?