Support

Admin Tools

#40910 if i install another website in subfolder on hosting, does akeeba block or redirect? i need it not too

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
4.4.6
PHP version
8.1
Admin Tools version
7.4.9

Latest post by nicholas on Wednesday, 10 July 2024 08:46 CDT

pgypps

Please look at the bottom of this page (under Support Policy Summary) for our support policy summary, containing important information regarding our working hours and our support policy. Thank you!

if i install another website in subfolder on hosting, does akeeba block or redirect? i need it not too - so basically i have joomla it main httpsdocs...then a subfolder with a wordpress.  I have amended .htaccess to allow domain/foldername...but any page i go there after redirects to maindomain and gives 404

nicholas
Akeeba Staff
Manager

It's not something about our software, it's about how Apache (the web server) works. The .htaccess files cascade based on filesystem location. This means that having a site in a subdirectory will be a massive problem as you cannot possibly make a .htaccess which will cater to both the main and the subfolder site at the same time. Don't do that. Use a subdomain instead, and put the subdomain's root outside (next to) the main site's root.

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!

pgypps

Hi Nicholas, 

I always look forward to your knowledge over the last 15 years , you have always given 100% accurate answers...you have always given the best advice and this is probably true on this ticket too...

i have to say though, however or but....and i could still be wrong as its perspective.

I need a subfolder as its better for SEO rather than a subdomain that gets seen as its own domain and own power..subfolders get there own website with their own power plus the power of the domain (from everywhere ican find answers on this).

this has worked with the .htacccess but i would still like your thoughts and perspective please - as always - thank you :) 

 

# BEGIN WordPress

# The directives (lines) between "BEGIN WordPress" and "END WordPress" are
# dynamically generated, and should only be modified via WordPress filters.
# Any changes to the directives between these markers will be overwritten.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /msp
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /msp/index.php [L]
</IfModule>

# END WordPress

# SGO Unset Vary
Header unset Vary
# SGO Unset Vary END

nicholas
Akeeba Staff
Manager

You could have instead used RewriteBase /msp.

However, that's not my point.

Many of the .htaccess rules in your site's root will have an effect on the subdirectory. As I told you, .htaccess files cascade. This means that the rules we add in the main site's .htaccess to allow the subdirectory access don't magically make the rest of the .htaccess file disappear; they just tell Apache to not bother applying certain Redirect rules.

Some WordPress plugins require you to make changes in your .htaccess file. It is possible that what they ask you to do won't work exactly because of how Apache works when there are cascading rules. If you bump into one of these and ask me what to do I will tell you to use a subdomain because that's the only thing you can realistically do.

Ideally, Apache should have an option to prevent the cascade from taking place, but this cannot happen because it's a Catch-22. You couldn't read and apply such a directive until you parsed the configuration cascade, but you don't want to parse the configuration cascade until you have applied such a directive. Therefore, there's no way to implement it without incurring massive performance penalties, if at all possible.

As for SEO, that's nonsense. This has stopped being the case since the mid-2000s. There are many myths parroted by self-important SEO "experts", all of which is – pardon my expression – utter bullshit. To begin with, search engines do NOT tell you how they work, and make constant changes, and apply personalised results since the early 2010s. These three conditions alone make it impossible to apply the scientific method: hypothesis, experiment, result analysis. Therefore, what SEO "experts" peddle is voodoo: hearsay, unsubstantiated beliefs, blind guesses. Worse than that, they are so entrenched in their thinking that they will peddle the same bullshit despite evidence to the contrary.

Yes. Evidence to the contrary. I have a personal experience with that.

I had written a massively popular guide on installing Linux on a portable drive a few years ago. For a year and a half it was one of the top results on the subject. I got a massive spike in visitors. NOT on the entire site, though. Just this one page. This page ended up being over 95% of my total traffic on the site. All other pages on my site received no more and no less search engine traffic than they did before. In fact, people coming to the massively popular page didn't even bother looking at any other page. The uplift was just one specific page, it was not for the entire site.

My hypothesis was that search engines work rationally, trying to match users with specific pages based on the content of the page and how many links and visits there are to it. They don't send you to a random page with irrelevant content just because the site "has good SEO".

The recent (April 2024) leaks from Google corroborate that. Their algorithm uses cross-links the content age, and the content itself as the main indicators of whether that page is good. An entire domain may get penalised for egregious content (spam, malware, etc) but the reverse is not true, i.e. an entire domain won't get uplifted just because a few pages are useful.

Make what you want of it.

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!

pgypps

and this is why you are awesome ...thank you. 

 

I will investigate the subdomain against folder even more for real evidence.  You are absolutely right about the information out there and i also know that all to well from youtube people (bloody affiliate marketers really) and websites writing junk just to get found (SEO right)

 

my skill was always to separate the two - i think.

 

Anyway, thanks for your take and spending your time on a reply. that is very much appreciated.

nicholas
Akeeba Staff
Manager

You're welcome!

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!