XF 1.5 How to redirect these links?

Jake Bunce

XenForo moderator
Staff member
#2
Add these rules to the top of the .htaccess file in your /forum directory:

Code:
RewriteEngine On

RewriteCond %{QUERY_STRING} (^|\?)do=file&id=([0-9]+)($|&)
RewriteRule ^downloads\.php$ /forum/resources/%2/? [R=301,L]
This assumes the source and target ids are identical.
 

Sadiq6210

Active member
#3
Add these rules to the top of the .htaccess file in your /forum directory:

Code:
RewriteEngine On

RewriteCond %{QUERY_STRING} (^|\?)do=file&id=([0-9]+)($|&)
RewriteRule ^downloads\.php$ /forum/resources/%2/? [R=301,L]
This assumes the source and target ids are identical.
You are genius :D
Thanks @Jake Bunce , it is working Perfect
 
Top