MyBB Community Forums

Full Version: index.php help
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
please guys i need help

is that possible that i can make the portal.php at the domain and forum (index.php) at the subdomain without making it redirect

more clearly:
when people type (mydomain.com) they will go to portal page

and when people type (forums.mydomain.com) they will go to the forums

its mean convert files to subdomains

is that possible and how?
.htaccess

For the first issue change directory index
DirectoryIndex portal.php index.php

For the second issue this may work (not sure)

Redirect 301 /forums.mydomain.com http://mydomain.com/index.php
(2013-08-12, 09:12 PM)effone Wrote: [ -> ].htaccess

For the first issue change directory index
DirectoryIndex portal.php index.php

For the second issue this may work (not sure)

Redirect 301 /forums.mydomain.com http://mydomain.com/index.php

The OP wants to host their website in a sub-domain (forums.domain.com) but have the portal at domain.com. Something like digitalpoint. (Confirmed through PM)
(2013-08-12, 09:15 PM)Arbaz Wrote: [ -> ]
(2013-08-12, 09:12 PM)effone Wrote: [ -> ].htaccess

For the first issue change directory index
DirectoryIndex portal.php index.php

For the second issue this may work (not sure)

Redirect 301 /forums.mydomain.com http://mydomain.com/index.php

The OP wants to host their website in a sub-domain (forums.domain.com) but have the portal at domain.com. Something like digitalpoint. (Confirmed through PM)

what arbaz said thats what i meant as i said i dont want to make it as Redirect
Okay. But just to correct myself, for typing with forum sub redirection code should be this:

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} http://forums.mydomain.com
RewriteRule .* http://mydomain.com/index.php [L,NC,R=301]