Support

Admin Tools

#12347 .htaccess redirect with phpBB3

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 Saturday, 19 May 2012 17:07 CDT

BO-Samson
Mandatory information about my setup:

Have I read the related troubleshooter articles above before posting (which pages?)? Yes
Have I searched the tickets before posting? Yes
Have I read the documentation before posting (which pages?)? Yes
Joomla! version: (2.5.4)
PHP version: (5.2.17)
MySQL version: (5.1.49)
Host: (vServer HostEurope)
Admin Tools version: (2.2.5)

Description of my issue:

Hello,

first of all: at this point of tim everything works fine, except redirection.

I run Joomla! with p8pBB-bridge for phpBB3. Before Admin-Tools-installation users could visit the phpBB-board via www.burn-out-forum.de/forum. phpBB was and is located in a Joomla! subfolder named phpBB3. When a user went to www.burn-out-forum.de/phpBB3 (no matter whether / at the end or not), he was redirected to www.burn-out-forum.de/forum an everything was fine.

Since I installed Admin-Tools, this redirection works wrong. When going to www.burn-out-forum.de/forum/ or www.burn-out-forum.de/phpBB3/ (both with / at the end), the board will be shown in stand-alone-version. Result is "crashed" template an wrong links in mails ...

I did a lot of experiments with .htaccess redirection. I want everybody redirected to www.burn-out-forum.de/forum who tries to visit it with / at the end. I could not find a solution and would be happy, if there would be one. I found out, that I am not alone with this problem.

nicholas
Akeeba Staff
Manager
I am not sure how the bridge works and how it performs the redirection, so I can't understand what could be going wrong. Let's try figuring out what causes the problem. Go to .htaccess Maker and disable all options, then click on Save and Create .htaccess. If the redirection issue is still there, the problem is not with Admin Tools' .htaccess Maker. If it's solved, start enabling one option at a time, clicking on Save and Create .htaccess and checking if the issue still exists. This will allow you to find which option causes the issue and tell me so that I can better help you.

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!

BO-Samson
Okay, I deactivated all options from .htaccess-maker, one after the other. No effect. But when I deleted the entry "phpBB3" from "fine-tuning" - "exceptions" - "allow direct access including .php-files", the redirection works fine. In that case the template from phpBB3 is completely crashed. The rest seems to work, but it looks horrible.

I tried to put every directory in the exceptions (phpBB3/adm - phpBB3/cache ...) with no effect.

I paste a copy form the bridge redirections. It think, there is an conflict with the first two lines:

RewriteCond %{REQUEST_FILENAME} /phpBB3(\/?)$
RewriteRule (.*) /forum [R=301,L]

RewriteCond %{REQUEST_FILENAME} /phpBB3/index.php
RewriteRule (.*) /forum?%{QUERY_STRING} [R=301,L]

RewriteCond %{REQUEST_FILENAME} ^/phpBB3/ucp.php
RewriteRule (.*) ^/forum/user?%{QUERY_STRING} [R=301,L]

RewriteCond %{REQUEST_FILENAME} /phpBB3/viewforum.php
RewriteRule (.*) /forum/forum?%{QUERY_STRING} [R=301,L]

RewriteCond %{REQUEST_FILENAME} /phpBB3/viewtopic.php
RewriteRule (.*) /forum/topic?%{QUERY_STRING} [R=301,L]

RewriteCond %{REQUEST_FILENAME} /phpBB3/memberlist.php
RewriteRule (.*) /forum/members?%{QUERY_STRING} [R=301,L]

RewriteCond %{REQUEST_FILENAME} /phpBB3/report.php
RewriteRule (.*) /forum/report?%{QUERY_STRING} [R=301,L]

RewriteCond %{REQUEST_FILENAME} /phpBB3/posting.php
RewriteRule (.*) /forum/post?%{QUERY_STRING} [R=301,L]

RewriteCond %{REQUEST_FILENAME} /phpBB3/mcp.php
RewriteRule (.*) /forum/moderator?%{QUERY_STRING} [R=301,L]

I am very bad in .thaccess-matters. I hope, you can help me. Some users use the wrong adress. Everytime when they write a post, many wrong links will be sent by mail to other users. This problem is growing.

Regards
JΓΌrgen

nicholas
Akeeba Staff
Manager
Normally if you put these lines in .htaccess Maker's field for directives which go to the top (not bottom) of the .htaccess file you should have no conflict.

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!

BO-Samson
Okay, I tried and it worked. I tried so many hints and endless changes in .htaccess. Nobody hat your idea. But you were right. I am really very grateful! Thank you very mutch!

nicholas
Akeeba Staff
Manager
You're welcome! I am glad it's all working now :)

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!