Support

Admin Tools

#9993 .htaccess help needed

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 TurnTex on Wednesday, 10 August 2011 21:55 CDT

TurnTex
Mandatory information about my setup:

Have I read the related troubleshooter articles above before posting (which pages?)? No
Have I searched the forum before posting? No
Have I read the documentation before posting (which pages?)? No
Joomla! version: (unknown)
PHP version: (unknown)
MySQL version: (unknown)
Host: (optional, but it helps us help you)
Admin Tools version: (unknown)


Description of my issue: Need .htaccess help

Nicholas, oh god of the .htaccess file, I was wondering if you could help out on an issue I am having. I have 7 different domain names all pointing to my main domain. For example, I have cactusblank.com that points to turntex.com. (not sure of the technical name but Bluehost calls it parked). When someone visits my site via cactusblank.com, it loads the page as cactusblank.com. However, when the try to login via virtuemart using the mod_virtuemart_login, it takes them to turntex.com and give an invalid token message.

Is there a way to handle this in the .htaccess file? I can, or course, create a re-direct in my c-panel but am afraid of what that will do to my search engine rankings. If not in the .htaccess file, do you have any other suggestions? Thank in advance for any help you can provide.

nicholas
Akeeba Staff
Manager
The problem is with how VirtueMart works, not an issue with .htaccess redirection, parked domains or anything in the like. VM stores the URL to your site in its configuration file. Accessing the VM store will forcibly redirect you to that URL. Since you are hosting a single site to all those subdomains, there is nothing you can do, unless you want to modify VirtueMart's core code.

That said, the way you are implementing this right now is an SEO crime. In the eyes of a search engine, you have seven domains with identical content. Search engines will grossly penalise you for doing so, as this is the common practice of spammers. I would suggest to have each extra domain redirect to turntex.com so that search engines do not register duplicate content. You can do so using Admin Tools Professional's .htaccess Maker (using the Redirect Old Domains feature).

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!

TurnTex
Thanks for the feedback and information, Nicholas. I did not realize that having the 7 domains pointing to the same content was a problem. I am on the first page with all of my typical search criteria, usually in the number 1 or 2 position but then again, my product is pretty specialized and unique.

Would it be better to use the .htaccess file to redirect to my main domain or use the re-direct with a 301 (I think that is what it was) that is available from my cpanel?

rkendallc
If I remember correctly about the cPanel redirects, they produce .htaccess directives in the .htaccess file to do the redirects. So, you could easily produce these yourself or have cPanel do them.

I would suggest using the tools in Admin Tools Pro to do the redirection as Nicholas suggested. it will put it in the right place in the .htaccess file.

If you do it through cPanel, it will put them at the end of the file, which does no good. You'd have to move them to the beginning.

You are already using AT, go ahead and use it for that as well as you are going to have the same outcome with the cPanel redirects in the end.

See Nicholas' previous post that mentions what function to use in the .htaccess maker.

TurnTex
Thank you, rkendallc (sorry, don't know your name!).

I contacted my host and asked them which one to do and they suggested the c-panel method would be easier but they are not familiar with the wonderful tool we have in AdminTools! I also asked them if the c-panel redirect modified the .htaccess file and the confirmed that it does so I just used AdminTools and have it all redirecting great now!

Thank you to both of you for the great help and support!!

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!