MyBB Community Forums

Full Version: Help!!
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
How would I remove this, so when people type "mydomain.com" they will be automatically transfered to my forums instead of this:

[Image: 3977659d4c5a9fa0e287980edcfdfcc6d8343c4.jpg]
Add a redirect through your control panel or move the contents of the ./forum folder to the root directory.
(2009-05-20, 10:23 AM)Joshua Mayer Wrote: [ -> ]Add a redirect through your control panel or move the contents of the ./forum folder to the root directory.

Umm Im not sure what you mean by that (complete noob). I want my site to be automatically redirected from "mydomain.com" to "www.mydomain.com/forum".
Open .htaccess in your root directory and add this code:
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^www.domain.com$ [NC]
RewriteRule ^(.*)$ http://www.domain.com/forum/$1 [L,R=301] 

Replace mydomain.com with your domain.

If there isn't a .htaccess, open a text editor, add that code and save it as .htaccess and upload it to your websites root directory.
(2009-05-20, 10:32 AM)Joshua Mayer Wrote: [ -> ]Open .htaccess in your root directory and add this code:
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^www.domain.com$ [NC]
RewriteRule ^(.*)$ http://www.domain.com/forum/$1 [L,R=301] 

Replace mydomain.com with your domain.

If there isn't a .htaccess, open a text editor, add that code and save it as .htaccess and upload it to your websites root directory.


When I open .htmaccess it has this already in the document

<Files 403.shtml>
order allow,deny
allow from all
</Files>

deny from 211.



Am I suppose to replace that with what you said?
No, add the code that I gave you under that code that is in .htaccess now.

Your .htaccess should look like this when you add the code I gave you:
<Files 403.shtml>
order allow,deny
allow from all
</Files>

deny from 211.

RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^www.domain.com$ [NC]
RewriteRule ^(.*)$ http://www.domain.com/forum/$1 [L,R=301]
(2009-05-20, 10:46 AM)Joshua Mayer Wrote: [ -> ]No, add the code that I gave you under that code that is in .htaccess now.

Your .htaccess should look like this when you add the code I gave you:
<Files 403.shtml>
order allow,deny
allow from all
</Files>

deny from 211.

RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^www.domain.com$ [NC]
RewriteRule ^(.*)$ http://www.domain.com/forum/$1 [L,R=301]

I did that.

And when I got to "mydomain.com" I still get this:

[Image: 3977659d4c5a9fa0e287980edcfdfcc6d8343c4.jpg]
Try this:
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^www.domain.com$ [NC]
RewriteRule ^(.*)$ http://www.domain.com/forum/$1 [L,R=301]

<Files 403.shtml>
order allow,deny
allow from all
</Files>

deny from 211.



Once again, change mydomain.com to your actual domain
(2009-05-20, 10:54 AM)Joshua Mayer Wrote: [ -> ]Try this:
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^www.domain.com$ [NC]
RewriteRule ^(.*)$ http://www.domain.com/forum/$1 [L,R=301]

<Files 403.shtml>
order allow,deny
allow from all
</Files>

deny from 211.



Once again, change mydomain.com to your actual domain

Still stuck at the .index page
What control panel do you use?? If it's cPanel, there's a section to setup redirects.
Pages: 1 2