I have a .htaccess at the top level of my web server. I have a need to
place a redirect in there for the Custom Application Development Software for Business - Salesforce.com link, but this seems to be
overridden by the .htaccess in the blog/public directory or possibly
some
other area in Typo. Does anyone know how I can override that from the
top
level? Placing my redirect into the blog/public/.htaccess does not seem
to
help. Note that the “newurl” below is not under the /blog tree.
This might also be related to the problem you are solving …
I wanted the Typo sitemap.xml to be in the root of my webserver instead
of
/blog/sitemap.xml
At first I used an apache redirect:
RedirectMatch ^/sitemap.xml$ http://mondragon.cc/blog/sitemap.xml
But I dropped that and just have an hourly cron dump the real file to
the
root of the webserver:
wget -q -O - http://mondragon.cc/blog/sitemap.xml >
/path_to_apache_root/sitemap.xml
An explanation is in order. This is for a new Pepper in Mint.
In effect, I am redirecting to a PHP script that is taking care of
tracking
IP address and clicks for subscribers.
This works for other feeds, but Typo has its own tree under all this
which
seems to be interfering.
It requires something like the following in .htaccess in the root of the
directory.
Note the line about the secretcode in the querystring. The pepper keeps
that secretcode when it requests it from the server, so it passes
through
without looping.
The top level .htaccess does not in fact catch this for Typo URLs. It
does
catch it for other feeds I have in the .htaccess