We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

kinda stuck and confused

How Do I?

sams's avatar
sams
5 posts
about 12 months ago
sams's avatar sams

I installed EE today and set up the Forums addon but have issue where i cannot figure out how to make www.example.com to go straight to www.example.com/forums/

       
Russ K.'s avatar
Russ K.
174 posts
about 12 months ago
Russ K.'s avatar Russ K.

I would say that if your intent is for /forums to always be the homepage, add a few lines to your .htaccess file.

RewriteEngine On
RewriteRule ^$ /forums/ [L,R=301]

should do the trick.

If you are on nGinx:

server {
    listen 80;
    server_name www.example.com;

    location = / {
        return 301 /forums/;
    }
    
    location / {
        # Other configurations for your site
    }
}

Hope that gets you where you need to be.

R

       
sams's avatar
sams
5 posts
about 12 months ago
sams's avatar sams

thanks that worked 😊

       
sams's avatar
sams
5 posts
about 12 months ago
sams's avatar sams

actually it doesnt work. it will do the redirect but will not allow members to login now.

if i remove that line i can login as a member.

       
sams's avatar
sams
5 posts
about 12 months ago
sams's avatar sams

surely theres a way i can redirect the landing page (to https://www.example.com/forums) instead? it would be cleaner via default controller route!?!

       
sams's avatar
sams
5 posts
about 12 months ago
sams's avatar sams

nm i got it sorted - i removed the default index template, created a new one, allowed php and just did a header redirect within.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.