Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: What to put into .htaccess to (re)direct incoming traffic to ...
Are you using Chrome?
If so, clean your Chrome cache, because Chrome caches redirects (it took away a few hours of my life the first time I figured that out).
Offline
Re: What to put into .htaccess to (re)direct incoming traffic to ...
%&%$%#&
Thanks @maniqui … your my savior … for today … ;-)
But … can you do one more trick? Now the url in the browserwindow of the redirect is: http://www.marijevijselaar.nl/www.duodyade.nl/ … can that be fixed to only www.duodyade.nl?
Last edited by RedFox (2012-01-12 13:28:48)
Offline
Re: What to put into .htaccess to (re)direct incoming traffic to ...
You mean, to remove the trailing slash?
Being that it’s a real directory, you may want to check if this Apache directive works for you:
httpd.apache.org/docs/2.0/mod/mod_dir.html#directoryslash
Not sure exactly how it’s used.
You may want to try by creating (or using the existing one, if any) an .htaccess inside the /www.duodyade.nl/
folder and putting something like this:
DirectorySlash Off
Or
<Location />
DirectorySlash Off
</Location>
Or
<Directory />
DirectorySlash Off
</Directory>
To see if any of those works. Check that it doesn’t break other stuff, particularly inside the duadyade website.
This may also be achieved by some rewrite rules, but being that this is a real folder, I’m not sure if rewrite rules will take effect/precedence over the DirectorySlash directive.
Offline
Re: What to put into .htaccess to (re)direct incoming traffic to ...
maniqui wrote:
You mean, to remove the trailing slash?
No … isn’t it possible that although the real url path is: www.marijevijselaar.nl/www.duodyade.nl … the browser only shows www.duodyade.nl … ??
Offline
Re: What to put into .htaccess to (re)direct incoming traffic to ...
No.
Or better said: that’s not a task to be done via rewrite rules. I see the advice you got in SO, but I’m not sure if the [P] flag will work in this situation. Also, that solution from SO requires mod_proxy enabled, so you should check first with your hosting company to know if that module is available to you.
That said, what you are trying to do is easier to be done if one of this:
- you can configure the DocumentRoot for www.duodyade.nl to be
/path/to/marijevijselaar/www.duodyade.nl/
. This may be doable from the hosting’s control panel. If the website is hosted a cheap shared hosting this kind of setup is usually not possible, but you will have to check. - host the duodyade.nl website in another hosting account (it could be on the same hosting).
Offline
Re: What to put into .htaccess to (re)direct incoming traffic to ...
Ok … thanks so far @maniqui … I really appreciate your help.
Offline
Re: What to put into .htaccess to (re)direct incoming traffic to ...
You are welcome. Feel free to ask here if you don’t find the way to solve this.
Offline