Support

Admin Tools

#21714 www/non-www redirect advanced htaccess question ?

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 Chacapamac on Thursday, 18 December 2014 07:22 CST

Chacapamac
 This is a brand new site —> http://www.monacouphene.ca (main french domain name)
and www.mytinnitus.ca redirect to the english side —> http://www.monacouphene.ca/en

In all my site I normally add the advanced htaccess and add my own www / non-www redirect that I insert in your advanced htaccess.

Normally I test the www / non-www redirect here —>
http://www.ragepank.com/redirect-check/

Normally I receive —> a green 301 redirect on ALL Results

If I use your own advanced htaccess rewrite, I receive what you see if you try now

I receive —> ………….. returns a HTTP/1.1 403 Forbidden response

On All Results

Not sure if OK or Not?

nicholas
Akeeba Staff
Manager
As you can see for yourself it returns a 303 See other HTTP header as it should. It doesn't return a 403. Apparently you have enabled one of the other .htaccess protections which only get triggered when your site is accessed by the third party service. My GUESS is the "Block access from specific user agents" option.

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!

Chacapamac
Sorry, I’m not to sure of what I’m suppose to understand here ?

I use, (for the first time) your onboard canonical redirect in your advanced htaccess. Normally, I add my own redirect directly to the advanced htaccess.

What we need here is a 301 permanent redirect and you show me a 303 ?
- Not sure if it’s good ?
- Is this still be perceive as the normal 301 ?
- This what it supposed to be ?

I did enabled the “Block access from specific user agents — Do you mean this have disabled that third party website canonical test to access the site?
— I was thinking this was really domain specific?

nicholas
Akeeba Staff
Manager
Patrick, the 303 is how Joomla! issues redirections on multilingual sites. It doesn't come from the .htaccess file. I'm not going to apologize for Joomla! core code that I've not written! In any case, I don't see a redirection issue coming from code I've written and which I can help you with. In fact, there is no redirection issue.

FYI all search engines treat 301, 302 and 303 in pretty much the same way: they assume you've screwed up and check if the redirection stays the same over time. What the SEO guys write on blog posts is complete bullshit. When we moved our site from Joomla! 1.5 to 2.5 and from 2.5 to 3.2 our URLs changed. We issued redirections from the old to the new URLs. I used 302 and 303 HTTP responses each time. Our search engine ranks didn't take a hit and our updated links appeared in search indexes within two or three days. This is when I started not believing in SEO guys any more than I believe in the existence of the Flying Spaghetti Monster.

I did enabled the “Block access from specific user agents — Do you mean this have disabled that third party website canonical test to access the site?


Yes, that's what I think. Most likely they're using curl or wget to get the responses from your site. Since these user agents are in the default list you're blocking them.

I was thinking this was really domain specific?


Please read the documentation. This feature blocks request based on the User Agent identification string, commonly called "UA string", "User Agent" or "UA". This only depends on the remote software used to access your site. It has absolutely nothing to do with the domain name whatsoever.

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!

Chacapamac
Thanks Nic for your enlightening answer - Everything clear now.
[CLOSED TICKET]

Merry Christmas in advanced !

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!