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

surfsup

Well-known member
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?
 
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 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/*?
 
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]
 
Top Bottom