Support

Admin Tools

#13258 Redirect 302

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 on Saturday, 15 September 2012 18:00 CDT

user62150
I'm referring to the ticket #12318.

I'm using Apache 2.2.16 and the redirect of non-www to www is always made with 302.
Then I modified the code [R,L] to [R=301,L] and now it works.

My questions:
1. Is this a correct way to do it?
2. Is there another solution because this way I've always to make the modifications again if I changed something in Admin Tools?
3. Is it the same problem in the latest version of Apache?

Thanks
Michael

nicholas
Akeeba Staff
Manager
1 & 2. Your web server does not report the Apache version to PHP. I really can't recall why this happens. I believe it's got something to do either with the FastCGI configuration or the Apache configuration. As long as the SERVER_SOFTWARE environment variable is set, Admin Tools automatically generates the [L,R=301] code for redirects on Apache 2.0, 2.1 or 2.2.

3. Which version of Apache are you using?

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!

user62150
I'm using Apache 2.2.16. When you check out this website it always sends the statuscode 302 when I use the original htaccess file generated with admintools:

:http://die-ferienwohnung-in-berchtesgaden.de/

nicholas
Akeeba Staff
Manager
As I said earlier:
As long as the SERVER_SOFTWARE environment variable is set, Admin Tools automatically generates the [L,R=301] code for redirects on Apache 2.0, 2.1 or 2.2.

The corollary is that if for any reason the SERVER_SOFTWARE environment variable is not set or set to a fake value then Admin Tools believes it's running on an older Apache version and generates the simple redirection code which results in 302 redirections. Please consult your host about any configuration changes necessary on the server in order for the SERVER_SOFTWARE environment variable to be passed on to PHP for Admin Tools to be able to detect your server version correctly and allow it to generate the .htaccess file it should be generating on Apache 2.x.

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!

user62150
Thanks, I asked the support and got the information that the variable is set. The enclosed screenshot is generated with phpinfo() and for this reason this information is also available in PHP too. Any idea?

nicholas
Akeeba Staff
Manager
Seems like the Apache version detection code returns the wrong result. I will fix it in the next version of Admin Tools.

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!

System Task
system
This ticket has been automatically closed. All tickets which have been inactive for a long time are automatically closed. If you believe that this ticket was closed in error, please contact us.

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!