MyBB Support

Redirect from Http?

Submitted by Mr_Joker, , Thread ID: 4837

Thread Closed
Mr_Joker
YouR JuSt G4Y
Level:
0
Reputation:
3
Posts:
795
Likes:
51
Credits:
493
15-06-2015, 09:30 AM
#1
Hey I've been trying to figure this out for awhile now can't seem to do it...

How can i redirect my URL example http://example.com TO www.example.com ??

Also do i have to change anything ACP MyBB ??

RE: Redirect from Http?

linkzy
No pressure, no diamonds
Level:
0
Reputation:
181
Posts:
5.34K
Likes:
341
Credits:
54
15-06-2015, 02:05 PM
#2
nothing to change in ACP duh. you can do it several ways like editing htacces or by editing the setting URL in inc
| A | v4hl| Addicted | Senpai | Sui | Sensei | H | fdigl |


RE: Redirect from Http?

Gods Hand
Member
Level:
0
Reputation:
0
Posts:
178
Likes:
5
Credits:
1
23-06-2015, 02:24 PM
#3
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

RE: Redirect from Http?

Mr_Joker
YouR JuSt G4Y
Level:
0
Reputation:
3
Posts:
795
Likes:
51
Credits:
493
OP
24-06-2015, 04:21 PM
#4
23-06-2015, 02:24 PM
Gods Hand 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 \ ??

RE: Redirect from Http?

Sozin
Nan Ihier Gelair Mordor
Divine
Level:
0
Reputation:
91
Posts:
2.33K
Likes:
374
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.

RE: Redirect from Http?

Mr_Joker
YouR JuSt G4Y
Level:
0
Reputation:
3
Posts:
795
Likes:
51
Credits:
493
OP
24-06-2015, 05:47 PM
#6
24-06-2015, 05:39 PM
Sozin Wrote:
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]

Tried that it hardly works it redirects me to URL not found lol.

RE: Redirect from Http?

Sozin
Nan Ihier Gelair Mordor
Divine
Level:
0
Reputation:
91
Posts:
2.33K
Likes:
374
Credits:
11K
24-06-2015, 06:47 PM
#7
24-06-2015, 05:47 PM
Mr_Joker Wrote:
24-06-2015, 05:39 PM
Sozin Wrote:
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]

Tried that it hardly works it redirects me to URL not found lol.

I am not God. Can you please post some more info? Like the pic of the error and your current Rewrite rule.

How the hell do you expect the community to help you?
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.

1

RE: Redirect from Http?

Diplo
A bit cunty with a dash of fuck you.
Level:
0
Reputation:
28
Posts:
838
Likes:
70
Credits:
1.77K
24-06-2015, 07:03 PM
#8
24-06-2015, 06:47 PM
Sozin Wrote:
24-06-2015, 05:47 PM
Mr_Joker Wrote:
24-06-2015, 05:39 PM
Sozin Wrote:
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]

Tried that it hardly works it redirects me to URL not found lol.

I am not God. Can you please post some more info? Like the pic of the error and your current Rewrite rule.

How the hell do you expect the community to help you?

I call bullshit. Op is top god, rated 1000000000/1 cause too godly 4 me, too sp00ky
1

RE: Redirect from Http?

Mr_Joker
YouR JuSt G4Y
Level:
0
Reputation:
3
Posts:
795
Likes:
51
Credits:
493
OP
24-06-2015, 07:55 PM
#9
Nevermind guys it works like charm thank you!

RE: Redirect from Http?

Gods Hand
Member
Level:
0
Reputation:
0
Posts:
178
Likes:
5
Credits:
1
25-06-2015, 12:57 AM
#10
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 \ ??

No you don't remove.

Users browsing this thread: 1 Guest(s)