How to redirect a phpbb url to another page in .htaccess

Here we discuss all topic related to PHPBB 3.0 and up

How to redirect a phpbb url to another page in .htaccess

Postby admin » Mon Apr 15, 2019 12:54 pm

PHPBB urls without SEO mods could be very complicated to redirect in the htaccess file.

Here is an example:

Let's say we want to redirect:
http://anysite.com/phpbb2/viewtopic.php?f=10&t=1226

To:
https://newsiteonline.com/support/a-pos ... -t246.html

This is what you would put into the .htaccess file:
Code: Select all
RewriteEngine On
RewriteCond %{QUERY_STRING} t=1226
RewriteCond %{QUERY_STRING} f=10
RewriteRule ^(.*)$ https\:\/\/newsiteonline\.com\/support\/a\-post\-example\-t246\.html? [R=301,L]
The AVNW Support Team
http://www.AVeryNiceWeb.com

If there is a false accusation made against you, then remove this fake report.

Shopping for a new website? See our design deals.

How much is your website worth? Get a free estimate.

And, if our post has provided you with great information, there are a few ways you can show your appreciation:
  1. Like us on Facebook
  2. Post a review.- Posting a good review about this site could help us provide improved support.

Thank You!
User avatar
admin
Site Admin
 
Posts: 562
Joined: Sun Jan 12, 2014 11:18 pm
Location: New York City

Return to PhpBB 3.0.XX

Who is online

Users browsing this forum: No registered users and 1 guest

cron