[pmwiki-users] Clean URLs .htaccess mod_rewrite problem
marc
gmane at auxbuss.com
Mon Dec 4 13:27:07 CST 2006
Patrick R. Michaud said...
> On Mon, Dec 04, 2006 at 01:27:01PM -0000, marc wrote:
> > marc said...
> > > [...]
> > > Can someone please advise on the correct way to do this. Thanks.
> >
> > For everyone who has been thrilled to follow this tale, I thought you
> > might like to know that I found the solution.
> >
> > RewriteCond $1 !/$
> > RewriteCond %{REQUEST_FILENAME}/ -d
> > RewriteRule (.+) $1/ [N]
> >
> > This is okay for each field too, in a regular farm setup.
> >
> > Should this go in the docs?
>
> Probably not, unless it's something that is really needed by lots
> of people. The CleanUrls recipe has been worked and reworked many
> times, and it's probably best not to muck with it too much.
I've hit this problem a few times. Another case where it can bite is
with Flash, when talking home.
> Also, fwiw, the way I would've handled the auxbuss.com -> www.auxbuss.com
> issue would be to put a redirect in .htaccess
I thought Redirect was path->URL, and
Redirect / http://www.blah.com/
will loop, won't it (in directory context)? Shows what I know. I'd
appreciate knowing the right way to do this (outside of httpd.conf).
> and/or to explicitly
> set PmWiki's $ScriptUrl variable to always use the www.auxbuss.com
> address.
Yes, this helps one you are at the appropriate location ;-) The
problematic URL(s) caused a 404, but once over that $SCriptUrl takes
over.
--
Best,
Marc
More information about the pmwiki-users
mailing list