Redirect with friendly urls

Connect with other users about what to run on your webhosting (and how to run it) here.
Post Reply
ImStayFrosty
New to forums
New to forums
Posts: 2
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Fri Jul 29, 2016 3:07 pm

Redirect with friendly urls

Post by ImStayFrosty »

I'm looking for a way so that if a user types example.com it changes to http://www.example.com. How can i do this with friendly urls?
I'm using XenForo.
Thanks in advance,
~Frosty
ImStayFrosty
New to forums
New to forums
Posts: 2
Joined: Fri Jul 29, 2016 3:07 pm

Re: Redirect with friendly urls

Post by ImStayFrosty »

ImStayFrosty wrote:I'm looking for a way so that if a user types example.com it changes to http://www.example.com. How can i do this with friendly urls?
I'm using XenForo.
Thanks in advance,
~Frosty
Found the solution, this is for XenForo users only. I have no clue if this will work for other forums.
https://xenforo.com/community/threads/m ... -www.8232/

This is what I got to work

Code: Select all

RewriteCond %{HTTP_HOST} ^wickedcommunity\.com$ [NC]
RewriteRule ^(.*)$ http://www.wickedcommunity.com/$1 [R=301,L]
Replace wickedcommunity.com and www.wickedcommunity.com with your domain!
Post Reply