Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2012-01-12 13:05:49

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

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).


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#14 2012-01-12 13:16:29

RedFox
Member
From: Netherlands
Registered: 2005-03-25
Posts: 811
Website

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

#15 2012-01-12 14:09:25

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

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.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#16 2012-01-12 17:04:05

RedFox
Member
From: Netherlands
Registered: 2005-03-25
Posts: 811
Website

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

#17 2012-01-12 17:55:54

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

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).

La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#18 2012-01-12 19:24:26

RedFox
Member
From: Netherlands
Registered: 2005-03-25
Posts: 811
Website

Re: What to put into .htaccess to (re)direct incoming traffic to ...

Ok … thanks so far @maniqui … I really appreciate your help.

Offline

#19 2012-01-12 19:39:14

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

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.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

Board footer

Powered by FluxBB