Autor Zpráva
Peloš
Profil
zdravím, potřeboval bych pomoct s příkazem pro přesměrování, celý web mám ve složce public_html, mám tam ale také další adresáře, které s webem nesouvisí (další doména 3.řádu). Chtěl bych ve složce public_html vytvořit adresář např. "www" a web tam přesunout. Co mám potom napsat do .htaccess ? Díky za radu
Chates
Profil
videl bych to na:

RewriteEngine On
RewriteRule ^.*$ /www/index.php [L,QSA]


pripadne:

RewriteEngine On
RewriteRule ^(.*)$ /www/index.php?url=$1 [L,QSA]


To prvni presmeruje uplne vsechno na /www/index.php a to druhe jeste hodi vsechno co je napsano za adresou do promenne url. takze treba www.neco.cz/hodnota se presmeruje na /www/index.php?url=hodnota
Peloš
Profil
Moc děkuju, vyzkoušel jsem první a bohužel nefunguje, vrací to hlášku 500.
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@mopedklan.cz and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.


---------------------------------------------------------------------- ----------

Apache Server at www.mopedklan.cz Port 80

Vaše odpověď


Prosím používejte diakritiku a interpunkci.

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

0