Support

Admin Tools

#22135 Subdomain // Htaccess how to do it?

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 Tuesday, 24 February 2015 07:12 CST

BrettVorster
 Hi Guys,

I need some clarity and then some help... :)

Okay so I have a Joomla! site for my client running AT - all good and well, this site in on root level at the moment. Now I've built him a new addition to his business and Online Shop - also on Joomla! It would be great if google could index this separately/ kind of from the main site... But the client doesnt want a complete departure from the current domain name.

So I was thinking Subdomain. Through Cpanel. I've created it a few times now and have issues with the new site not displaying its subpages correctly... So then I read a few of the posts and trawled the web looking for answers, I see you dont recommend keeping the subdirectory for the subdomain as a child folder in the main public_html/ so I tried rearranging it and moved it out completely along with editing the subdomain folder in Cpanel from public_html/shop to eith just shop/ or shoppublic_html/ but seems that that didnt fix it...

Then I saw maybe I need to keep /public_html/shop and move the main site as a peer into maybe public_html/mainsite which I tried but had problems with the url in the address bar showing xyz.com/mainsite I read a few other bits about domain redirects and other edits to htacess... But my concern is that without knowing what is good and what is bad I'm just going to have a crows-nest of code here and there...

so now you know my problem, where do I start? What would be the best route? keeping in mind I dont want to compromise the mainsites google ranking and sitelinks.

I appreciate your help :)

nicholas
Akeeba Staff
Manager
Create a new subdomain. When you are asked which directory to place it in select a NEW directory ABOVE the public_html directory and you will have no problems. If you are unsure how to do that please consult with your host.

Assuming subdomain directory name "sub_html"

CORRECT directory layout:
(your account)
   |
   +-- public_html
   |
   +-- sub_html
   |
   ...


INCORRECT directory layout:
(your account)
   |
   +-- public_html
   |    |
   |    +-- sub_html
   |
   ...

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!

BrettVorster
Hiya Nic,

Okay man so I've followed the instructions, I have the site in a folder outside of the public_html its now at the same level:

http://shop.transportandconstruction.co.za/

in a folder called shop, now the problem I have is still the same - if I click on a product listing or for example "airbrakes" category - the next page is buggered.

nicholas
Akeeba Staff
Manager
OK, you made the first, big step. Now let's get down to the details of the subdomain site.

You're using .htaccess Maker, correct and you transferred the site with Akeeba Backup (or any other backup tool), correct? Go to Admin Tools, .htaccess Maker. Scroll all the way down. Make sure the HTTP and HTTPS domains and the directory are correct. The domains should read
shop.transportandconstruction.co.za
and the directory should read
/
Remember to click on Save & Close after any change.

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!

BrettVorster
Hi Nic,

Thank you for getting back to me so quickly. Okay so I've installed AT pro on this subdomain and gone down to the htaccess maker bottom to set the http and https as you outline, plus the directory as /

Saved the new htaccess file and closed. Open the site - and click on the link... but still have the same result... Perhaps I can send you a login for the site to have a look around?

nicholas
Akeeba Staff
Manager
You need to contact your host or, if they cannot help you, the Joomla! Forum. We cannot provide generic Joomla! support. It is outside the scope of the services we provide.

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!

BrettVorster
Sure Nic no worries... I reckon it is a hosting issue on 500 errors - maybe the server not capable of both sites... anyways - thank you for your help.

nicholas
Akeeba Staff
Manager
My guess is that they either don't have Apache's mod_rewrite enabled OR they have a very old version of Apache (1.3?) which may have a problem with the newer .htaccess SEF rules applied since Joomla! 3.3 and also used by Admin Tools' .htaccess Maker.

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!