W folderze głównym aplikacji:
Kod
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^$ public/ [L]
RewriteRule (.*) public/$1 [L]
</IfModule>
RewriteEngine on
RewriteRule ^$ public/ [L]
RewriteRule (.*) public/$1 [L]
</IfModule>
w folderze public:
Kod
AddDefaultCharset UTF-8
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?_url=/$1 [QSA,L]
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?_url=/$1 [QSA,L]
</IfModule>
Pródowałem już:
Kod
$HTTP["host"] == "xxx.pl" {
$HTTP["url"] =~ "^/phalconapp/" {
url.rewrite-once = (
"^$" => "public/",
"(.*)" => "public/$1"
)
}
$HTTP["url"] =~ "^/phalconapp/public/" {
url.rewrite-once = (
"^(.*)$" => "index.php?_url=/$1"
)
}
}
$HTTP["url"] =~ "^/phalconapp/" {
url.rewrite-once = (
"^$" => "public/",
"(.*)" => "public/$1"
)
}
$HTTP["url"] =~ "^/phalconapp/public/" {
url.rewrite-once = (
"^(.*)$" => "index.php?_url=/$1"
)
}
}
i z 20 innych sposobów.... i nic nie działczy, a internet milczy. No i jak nie działa tak nie działa.
btw. przepraszam że w hydeparku ale zapomniałem że są tutaj też inne działy.