Autor Zpráva
zirkon
Profil *
Dobry den,
neviete kde by som mohol mat chybu, resp. kde sa take nieco nastavuje ked na normalnom hostingu mi cesty ficia normalne a na localhoste musim pisat http://localhost:8080/stranka/index.php/
http://localhost:8080/stranka/admin/index.php/ .....ked napisem iba http://localhost:8080/stranka tak to nefunguje...to by este taky problem nebol ale ked chcem v admine nieco nastavit na podstrankach http://localhost:8080/stranka/admin/?page=banners tak uz to nefunguje vobec(Objekt nenalezen)

dakujem za kazdu radu
Camo
Profil
Čo más v súbore httpd.conf v direktíve DirectoryIndex?
DirectoryIndex index.html index.php?
zirkon
Profil *
<IfModule dir_module>
DirectoryIndex index.php index.pl index.cgi index.asp index.shtml index.html index.htm \
default.php default.pl default.cgi default.asp default.shtml default.html default.htm \
home.php home.pl home.cgi home.asp home.shtml home.html home.htm
</IfModule>
zirkon
Profil *
Vyriešené:

do .htaccess som podla vygoogleneho navodu vlozil nasledujúce riadky:

RewriteEngine On

# cele domeny (aliasy)
RewriteCond %{REQUEST_URI} !^domains/
RewriteCond %{REQUEST_URI} !^/domains/
RewriteCond %{HTTP_HOST} ^(www\.)?(.*)$
RewriteCond %{DOCUMENT_ROOT}/domains/%2 -d
RewriteRule (.*) domains/%2/$1 [DPI]

# subdomeny (s nebo bez www na zacatku)
RewriteCond %{REQUEST_URI} !^subdom/
RewriteCond %{REQUEST_URI} !^/subdom/
RewriteCond %{HTTP_HOST} ^(www\.)?(.*)\.([^\.]*)\.([^\.]*)$
RewriteCond %{DOCUMENT_ROOT}/subdom/%2 -d
RewriteRule (.*) subdom/%2/$1 [DPI]

# aliasy - spravne presmerovani pri chybejicim /
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^domains/[^/]+/(.+[^/])$ /$1/ [R]

# subdomeny - spravne presmerovani pri chybejicim /
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^subdom/[^/]+/(.+[^/])$ /$1/ [R]


zirkon:

* okrem toho [/pre] čo je na konci
Moderátor Davex: Opraveno.

Vaše odpověď


Prosím používejte diakritiku a interpunkci.

Ochrana proti spamu. Napište prosím číslo dvě-sta čtyřicet-sedm:

0