NameSilo

..Htaccess help needed please. (Nonpaid)

Spaceship Spaceship
Watch

BitcoinDK

VIP Member
Impact
79
First, I know squat about coding anything, so sorry in forward for stupid questions.

I am "developing" a multiforum site, I have found out that I need to make a .htaccess file to make what I want to do, so I have search and read around and wroted one, but I dont think I have done it right. :)

What I want it to do is f.ex. instead of having a url and making forums in

www.stickyforums.com/somethingforum/

I want it to be...

somethingforum.stickyforums.com

I have wroted following .htaccess, what do I need to add and remove to get what I want?

---------.htaccess start-----------
<Files .htaccess>
order allow,deny
deny from all
</Files>

ErrorDocument 404 /index.php?do=unknown_page
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /forum/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

Options ExecCGI
---------.htaccess end----------


Thank you very much for helping.
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
.US domains.US domains
if you want it something.stickyforums.com, that means you have to set up a subdomain.

there should be an option somewhere in cpanel (or whatever your host supplies) that will let you set up your subdomains (as well as what directories they point to). hopefully, you have cpanel - then you won't have to even touch htaccess
 
1
•••
Sorry I did not make myself clear.

I am planning to use some script called NextBBS. It is a multiforum script, where my visitors can make their own forums easy and automatic.

From default when users make their forum, the script makes it so their forum name is something like: www.stickyforums.com/somethingforum/

what I want it to be instead is when my users create their forum:
something.stickyforums.com

In the scripts website installation read me they write that to do that one has to do a .htaccess file with RewriteBase on, but they dont say what I have to write in the .htaccess file.

Sorry before for not explaining this better, I hope it is more understandable now, what I want.

Thank you in forward for your reply.
 
0
•••
Yes this can be done with the following code.

Code:
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.yourwebsite.com
RewriteCond %{HTTP_HOST} somethingforum\.yourwebsite.com
RewriteRule ^(.*)$ /somethingforum

:)
 
1
•••
Thank you Dave.

Repped you. :)
 
0
•••
0
•••
nice discussion :wave:
 
0
•••
Dynadot — .com Registration $8.99Dynadot — .com Registration $8.99

We're social

Unstoppable Domains
Domain Recover
DomainEasy — Zero Commission
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back