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

General questions relating to Joomla! 1.5 There are other boards for more specific help on Joomla! features and extensions.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Post Reply
polnews
Joomla! Apprentice
Joomla! Apprentice
Posts: 13
Joined: Tue Jun 09, 2009 11:42 am

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

Post by polnews » Thu Feb 14, 2019 4:04 pm

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

User avatar
Giraffex
Joomla! Intern
Joomla! Intern
Posts: 72
Joined: Fri Jan 21, 2011 3:51 pm
Location: Guben
Contact:

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

Post by Giraffex » Thu Feb 14, 2019 4:20 pm

Hi
At the address below you will find the redirection generator.
https://www.htaccessredirect.net/

It should interest you: 301 Redirect File or Directory

webhostuk
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 195
Joined: Thu Aug 27, 2009 3:05 am
Location: UK
Contact:

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

Post by webhostuk » 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
https://www.webhost.uk.net/joomla-hosting.html | Best UK Joomla Hosting!
http://www.webhost.US.Com | Best US Joomla Hosting
One click auto installer for Joomla

polnews
Joomla! Apprentice
Joomla! Apprentice
Posts: 13
Joined: Tue Jun 09, 2009 11:42 am

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

Post by polnews » Mon Feb 18, 2019 11:58 am

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.

polnews
Joomla! Apprentice
Joomla! Apprentice
Posts: 13
Joined: Tue Jun 09, 2009 11:42 am

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

Post by polnews » Mon Feb 18, 2019 12:14 pm

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


Post Reply

Return to “General Questions/New to Joomla! 1.5”