XF 2.1 What to change Homepage link but to keep all other links intact

JasonBrody

Active member
Hi everyone,
I want to change my forum homepage link from ex: techpedia.com to techpedia.com/forums (by permanent redirection means opening techpedia.com will open techpedia.com/forums) , but i want to keep all other new & old links ( links for existing threads stuffs of resource manager) unchanged/intact to prevent link errors .

How to do that ?
 
Have you got a file called web.config in your website root?

If so add the following line:

Code:
        <httpRedirect enabled="true" destination="https://www.YOURDOMAIN/forums" childOnly="true" />

It will redirect any requests to your domain to the forum index page whilst not affecting other directories within the root.
Links to files directly within the root such as yourdomain/yourfile.htm will however be broken.
 
This is an old question, but since it took a bit of playing around to find a solution, so, will share it here (using your links for the example):

In Admin -> Setup -> Options -> Basic Options, set the following:

board URL:
techpedia.com

canonicalization:
off

Index page route:
forums/

Use full friendly URLs:
on

And to re-direct your logo weblink (if you have one in your banner):

Home page URL (two options):
techpedia.com/index.php?forums/

techpedia.com/forums/ ... (works here as well, when full friendly URLs is turned on)

Link logo to home page URL:
on
 
Back
Top Bottom