page redirection

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

I am trying to redirect a page to another page. I was trying to use
the .htaccess method, like this:

Redirect 301 /oldpage.html

My only problem is that in the old page, I would like to specify the
domain name but it does not work. The reason I want to specify the
domain name is that we have two different domains for the same website
and they both point to the same root folder. So one appears when
browsing the French files (same as the English files but with _f at
the end) and the other appear when browsing the English files.

So, the English index file is index.php and the French index file is
index_f.php and they are both the the same root folder.

So, in other words, I want to redirect
to but I do not want to
redirect to

Or, in other words again, I only want to redirect the index.php page
when the French domain appears in the location bar. So when appears in the location bar, I
want it to redirect to index_f.php. When
appears in the location bar, I want it to stay there.

Does anyone know how I can do this? This is a bit hard to explain, I
hope it was clear.

If you have any ideas, please let me know.. doesn't have to be with an

Re: page redirection wrote:

Quoted text here. Click to load it

Sounds like you need conditional rewrites, rather than redirects.
Consult the Apache documentation (good luck).


The Probert Encyclopaedia

Re: page redirection

On Apr 26, 2:39 pm, wrote:
Quoted text here. Click to load it

Most of the hosting providers gives you the possibility to redirect
pages easily with Cpanel.


Site Timeline