Mam mały problem z przeniesieniem aplikacji do folderu w katalogu.
Cała aplikacja była pisana w vhost rootdir.
Teraz chciałem ją przenieść w całości do katalogu w tej domenie ale jest problem.
www.domain.com/myfolder/
i panel admina
www.domain.com/myfolder/panel/
domyślam się ze chodzi o htaccess
obecnie to wygląda tak
# Turn on URL rewriting RewriteEngine On # Installation directory RewriteBase / # Protect application and system files from being viewed RewriteRule ^(application|modules|system) - [F,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,L]
i ten z panelu
# Turn on URL rewriting RewriteEngine On # Installation directory RewriteBase /panel/ # Protect application and system files from being viewed RewriteRule ^(application_admin|application|modules|system) - [F,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,L]
Jak to konfigurować?
Wydawało mi się ze BaseDir jest od tego ale cokolwiek tam nie wpisze to nie działa to zgodnie z oczekiwaniami...
