[mythtv] Re: [mythtv-commits] Re: Ticket #920: mythweb rewriting rules break when using Alias in httpd.conf

Mark Spieth mark at dclabs.com.au
Tue Jan 3 03:06:03 UTC 2006

> Have you tried using the secondary rewrite code?  It's the commented stuff
> near the bottom of the file (I just committed some stuff to rearrange it,
> it used to be on the very bottom).  Uncomment the line that says
> mythweb.php?PATH_INFO=/$1 and comment out the one above it.
> It's odd, though.  I run a setup like this for trac, (with the alias and
> everything) and have no trouble with it.  However, you may have to resort
> to using a symlink instead of the alias command.
this is the trailing / problem again (with my 1.3.34 mod_rewrite anyway)
I changed mine to
(css|data|images|js|themes|skins|[a-z_]+\.php)(/|$)     -     [L]
    RewriteRule     ^(/.+)$                 $1/mythweb.php 
    RewriteRule     ^(.+)$                  mythweb.php/$1 
    RewriteRule     ^(.*)$                  mythweb.php 

the 2nd rule is when the uri is
/www/htdocs/mythweb from an original uri of http://xxx/mythweb
if the uri starts with a / its not relative and then correctly translates to 
what's required.
http://xxx/mythweb/ has a relative uri of "" and uses the last rule
seems to work.

More information about the mythtv-dev mailing list