• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.1 Need to re-direct 2 urls to 2 specific threads

surfsup

Well-known member
#1
Need to redirect /mobile and /googlehandoutguide to two different threads, ive tried the route changer but that doesnt work - im on 1.1.5 (not 1.2 yet).

What would I need to add in my htaccess?
 

Jeremy

Well-known member
#2
Add this into your .htaccess:
Code:
RewriteRule ^[^/]+/mobile /forum/index.php?threads/#/ [R=301,L]
RewriteRule ^[^/]+/googlehandoutguide /forum/index.php?threads/#/ [R=301,L]
Update the thread IDs appropriately, and if you use friendly URLs, remove "index.php?" from those redirects.
 

surfsup

Well-known member
#3
Ok so no
Add this into your .htaccess:
Code:
RewriteRule ^[^/]+/mobile /forum/index.php?threads/#/ [R=301,L]
RewriteRule ^[^/]+/googlehandoutguide /forum/index.php?threads/#/ [R=301,L]
Update the thread IDs appropriately, and if you use friendly URLs, remove "index.php?" from those redirects.
Ok cool, so no need to put the full url just /? or would it need to be http://www.sitehere.com/*?
 

surfsup

Well-known member
#5
I'm not sure what you're asking? That will redirect:
http://yoursite.com/mobile to http://yoursite.com/forum/index.php?threads/#/

If you're installed at root, remove /forum. If you use friendly URLS, remove forum/index.php?.
I added these and nothing happens....

Code:
RewriteRule ^[^/]+/mobile /threads/tmf-mobile-app-free-limited-time.37750/ [R=301,L]
RewriteRule ^[^/]+/freehandout /resources/free-customer-google-yelp-facebook-review-guide-handout.190/ [R=301,L]