Dynadot .com transfer sale, only $10.12 with coupon code DYNA12, available while supplies last, ends October 31, 2026.

..Htaccess help needed please. (Nonpaid)

Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
SpaceshipSpaceship
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
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
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
Close
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
Close
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
Close
Thank you Dave.

Repped you. :)
 
0
Close
0
Close
nice discussion :wave:
 
0
Close
DomainEasy: white label portfolios are live. Enable yours.

We're social

Escrow.com
Spaceship
CryptoExchange.com
Domain Recover

NamePros updates

Quick replies: search, your most used replies, and more on every post
Quick replies are easier to find and use now. The quick reply menu has a search box. Type a few letters to find the reply you want. A...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back