Support

Admin Tools

#9838 Redirect in htaccess not working properly

Posted in ‘Admin Tools for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
n/a
PHP version
n/a
Admin Tools version
n/a

Latest post by nicholas on Friday, 15 April 2011 15:57 CDT

savvygroup
Hi everybody,

Having an issue with a redirect not working correctly. Here is the redirect I'm trying to use:

RewriteCond %{HTTP_HOST} ^marcellomonteiro.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.marcellomonteiro.com$
RewriteRule ^/?$ "http\:\/\/bjjcoach\.com" [R=301,L]

I put it in:

Custom .htaccess rules at the top of the file

in htaccess. When going to marcellomonteiro.com I want it to redirect to bjjcoach.com but its not working for some reason and I don't know why. Any ideas?

Thanks

nicholas
Akeeba Staff
Manager
Your rewrite rules are wrong, that's why they are not working. Moreover, you don't need them! Here's how to accomplish the same thing:

Go to Admin Tools, .htaccess Maker and expand the "Optimisation and utility" tab. In the "Redirect this (old) domain name to the new one" field enter:
marcellomonteiro.com,www.marcellomonteiro.com

Expand the System Configuration tab. Make sure the host name fields read:
bjjcoach.com
and that the "Base directory of your site (/ for domain's root)" reads:
/

Click on "Save and create .htaccess" and you're set!

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

savvygroup
Hi Nicolas,

Actually tried to do it the way you mentioned previously and it didn't work. The redirect still didn't take effect and marcellomonteiro.com doesn't redirect to bjjcoach.com. Any ideas?

nicholas
Akeeba Staff
Manager
Except for your server not taking into account .htaccess or rewrite rules, I have no idea. I am using this feature on this site. If you try to visit www.joomlapack.net or joomlapack.net (our old domain names) you will be redirected to www.akeebabackup.com.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!