MyBB Support

Redirect from Http?

Submitted by Mr_Joker, , Thread ID: 4837

Thread Closed

RE: Redirect from Http?

Sozin
Nan Ihier Gelair Mordor
Divine
Level:
0
Reputation:
91
Posts:
2.33K
Likes:
375
Credits:
11K
24-06-2015, 05:39 PM
#5
24-06-2015, 04:21 PM
Mr_Joker Wrote:
23-06-2015, 02:24 PM
GodsHand Wrote:
Add this to your .htaccess file

Code:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^example\.com$ [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]

This will add the WWW prefix to your domain names in URLs

example\.com do i remove \ ??

Uhm... Edit it? It's text.

RewriteCond %{HTTP_HOST} ^example.com$ [NC]
Do not let your difficulties fill you with anxiety, after all it is only in the darkest nights that stars shine more brightly. - Ali(a.s)

Developer( PHP, Python, C++, HTML+CSS, JS I am available for Hire. Message Me for details.


Users browsing this thread: 1 Guest(s)