mod_rewrite & mod_vhost_alias ⇒ Internal server error

Upozornění: Tohle vlákno je hodně staré a informace nemusí být platné pro současné Nette.
mlady
Člen | 24
+
0
-

Ahoj vsetci.

Uz dlho sa trapim s nastavenim mod_rewrite pre Nette. Pouzivam hosting od fi. Yegon a mam stranky umiestnene v subdomene. Predpokladam, ze to riesia nejako cez mod_vhost_aliasm pretoze mi to stale hadze internal server error. Nasimuloval som si teda taketo spravanie aj u seba na localhoste a v logoch som objavil tieto hlasky:

[Sun Feb 08 02:28:01 2009] [error] [client 127.0.0.1] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
[Sun Feb 08 02:28:01 2009] [debug] core.c(3046): [client 127.0.0.1] r->uri = /subs/vikend2009/public_html/index.php
[Sun Feb 08 02:28:01 2009] [debug] core.c(3052): [client 127.0.0.1] redirected from r->uri = /subs/vikend2009/public_html/index.php
[Sun Feb 08 02:28:01 2009] [debug] core.c(3052): [client 127.0.0.1] redirected from r->uri = /subs/vikend2009/public_html/index.php
[Sun Feb 08 02:28:01 2009] [debug] core.c(3052): [client 127.0.0.1] redirected from r->uri = /subs/vikend2009/public_html/index.php
[Sun Feb 08 02:28:01 2009] [debug] core.c(3052): [client 127.0.0.1] redirected from r->uri = /subs/vikend2009/public_html/index.php
[Sun Feb 08 02:28:01 2009] [debug] core.c(3052): [client 127.0.0.1] redirected from r->uri = /subs/vikend2009/public_html/index.php
[Sun Feb 08 02:28:01 2009] [debug] core.c(3052): [client 127.0.0.1] redirected from r->uri = /subs/vikend2009/public_html/index.php
[Sun Feb 08 02:28:01 2009] [debug] core.c(3052): [client 127.0.0.1] redirected from r->uri = /subs/vikend2009/public_html/index.php
[Sun Feb 08 02:28:01 2009] [debug] core.c(3052): [client 127.0.0.1] redirected from r->uri = /subs/vikend2009/public_html/index.php
[Sun Feb 08 02:28:01 2009] [debug] core.c(3052): [client 127.0.0.1] redirected from r->uri = /subs/vikend2009/public_html/index.php
[Sun Feb 08 02:28:01 2009] [debug] core.c(3052): [client 127.0.0.1] redirected from r->uri = /texty/

Neviete mi poradit ako by som mohol zmenit RewriteRule?

Vdaka za pomoc :)

nAS
Člen | 277
+
0
-

Pokud je zapnutý mod_vhost_aliasm použij standardní .htaccess, jenom odkomentuj řádek:

RewriteBase /
mlady
Člen | 24
+
0
-

Skvele! Vdaka, uz to funguje. Stravil som nad tym dve hodiny a nenapadlo mi, ze riesenie je tak jednoduche ;)

Mozno by bolo fajn keby sa to presne napisalo do komentara :)