Page 1 of 1

How to redirect (301, by. htaccess) single Joomla (1.5) page into another domain (Joomla 3.x)

Posted: Thu Feb 14, 2019 4:04 pm
by polnews
Hi,

I have 2 websites - old one on Joomla 1.5 and new one (another domain) on Joomla 3.x.

As few articles on that old website are no.1 in Google I copied them into a new domain. I would like now to do 301 redirect to keep high rank for that article on new domain.

Old one is http, new one https. Both of them have already .htaccess filre to redirect from domain.com into www.domain (+www). See blow.

Code: Select all

RewriteEngine On
rewritecond %{http_host} ^domain.co.uk [nc]
rewriterule ^(.*)$ http://www.domain.co.uk/$1 [r=301,nc]

What should I add to .htaccess to have this page:

Code: Select all

http://www.domain.co.uk/index.php/news/1141-article.html
redirected 301 into:

Code: Select all

https://www.newdomain.uk/index.php/news/57-article.html

Re: How to redirect (301, by. htaccess) single Joomla (1.5) page into another domain (Joomla 3.x)

Posted: Thu Feb 14, 2019 4:20 pm
by Giraffex
Hi
At the address below you will find the redirection generator.
https://www.htaccessredirect.net/

It should interest you: 301 Redirect File or Directory

Re: How to redirect (301, by. htaccess) single Joomla (1.5) page into another domain (Joomla 3.x)

Posted: Mon Feb 18, 2019 7:10 am
by webhostuk
You can also try below .htaccess rule :

# Permanent URL redirect - generated by www.rapidtables.com
Redirect 301 /index.php/news/1141-article.html
https://www.newdomain.uk/index.php/news/57-article.html

Re: How to redirect (301, by. htaccess) single Joomla (1.5) page into another domain (Joomla 3.x)

Posted: Mon Feb 18, 2019 11:58 am
by polnews
Unfortunately, any options doesn't work. I got only:

Code: Select all

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

Re: How to redirect (301, by. htaccess) single Joomla (1.5) page into another domain (Joomla 3.x)

Posted: Mon Feb 18, 2019 12:14 pm
by polnews
webhostuk wrote:
Mon Feb 18, 2019 7:10 am
You can also try below .htaccess rule :

# Permanent URL redirect - generated by www.rapidtables.com
Redirect 301 /index.php/news/1141-article.html
https://www.newdomain.uk/index.php/news/57-article.html
Right, I tried again as must be a space not new line between 301 paramets.

So I got

Code: Select all

http://www.domain.uk/https://www.newdomain.uk/index.php/news/57-article.html
^^ nearly, but I dont need that first part