Welcome to the largest and most talked about domain name forum in the World!

We are NamePros, the award-winning free community for domain name owners, buyers and website developers. Once registered, you can:
  • Post your domains for sale or for free appraisals.
  • Private message and conduct business with other domain owners.
  • View member-only forums such as 'Legal Issues' and 'Expired Domains' (NOT visible to search engines)
  • Free access our archives of posts
Join now for free


Go Back   NamePros.com > Discussion > Web Design & Development > Programming
New! Use your Facebook, Google, AIM & Yahoo accounts to securely log into this site, click logo to login  

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.



Reply
 
LinkBack Thread Tools
Old 07-04-2009, 11:51 AM   #1 (permalink)
Senior Member
 
testingyou's Avatar
 
Join Date: Aug 2007
Location: Copenhagen - Denmark
Posts: 1,609
23.70 NP$ (Donate)

testingyou is a splendid one to beholdtestingyou is a splendid one to beholdtestingyou is a splendid one to beholdtestingyou is a splendid one to beholdtestingyou is a splendid one to beholdtestingyou is a splendid one to beholdtestingyou is a splendid one to beholdtestingyou is a splendid one to behold



..htaccess help needed please. (nonpaid) :)

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.
__________________
Are you a Scandinavian domainer? Together we are stronger! - Join us here: Scandinavian Domainers!
Reliable and secure domain registering - visit 77GB.net | Free Hosting !!! visit Nicheserver.net | Free Forums !!! visit Stickyforums.com | Non-commercial donation site 3x3.org.
testingyou is online now   Reply With Quote
Old 07-04-2009, 02:11 PM   #2 (permalink)
Senior Member
 
nasaboy007's Avatar
 
Join Date: Jul 2005
Location: NJ
Posts: 1,182
1,504.30 NP$ (Donate)

nasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud of



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
nasaboy007 is offline   Reply With Quote
Old 07-04-2009, 04:45 PM   #3 (permalink)
Senior Member
 
testingyou's Avatar
 
Join Date: Aug 2007
Location: Copenhagen - Denmark
Posts: 1,609
23.70 NP$ (Donate)

testingyou is a splendid one to beholdtestingyou is a splendid one to beholdtestingyou is a splendid one to beholdtestingyou is a splendid one to beholdtestingyou is a splendid one to beholdtestingyou is a splendid one to beholdtestingyou is a splendid one to beholdtestingyou is a splendid one to behold



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.
__________________
Are you a Scandinavian domainer? Together we are stronger! - Join us here: Scandinavian Domainers!
Reliable and secure domain registering - visit 77GB.net | Free Hosting !!! visit Nicheserver.net | Free Forums !!! visit Stickyforums.com | Non-commercial donation site 3x3.org.
testingyou is online now   Reply With Quote
Old 07-04-2009, 04:59 PM   #4 (permalink)
Senior Member
 
DomainManDave's Avatar
 
Join Date: Jun 2007
Location: NamePros.com
Posts: 1,187
0.00 NP$ (Donate)

DomainManDave has much to be proud ofDomainManDave has much to be proud ofDomainManDave has much to be proud ofDomainManDave has much to be proud ofDomainManDave has much to be proud ofDomainManDave has much to be proud ofDomainManDave has much to be proud ofDomainManDave has much to be proud of


Cancer
Smile

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
DomainManDave is offline   Reply With Quote
Old 07-05-2009, 11:24 AM   #5 (permalink)
Senior Member
 
testingyou's Avatar
 
Join Date: Aug 2007
Location: Copenhagen - Denmark
Posts: 1,609
23.70 NP$ (Donate)

testingyou is a splendid one to beholdtestingyou is a splendid one to beholdtestingyou is a splendid one to beholdtestingyou is a splendid one to beholdtestingyou is a splendid one to beholdtestingyou is a splendid one to beholdtestingyou is a splendid one to beholdtestingyou is a splendid one to behold



Thank you Dave.

Repped you.
__________________
Are you a Scandinavian domainer? Together we are stronger! - Join us here: Scandinavian Domainers!
Reliable and secure domain registering - visit 77GB.net | Free Hosting !!! visit Nicheserver.net | Free Forums !!! visit Stickyforums.com | Non-commercial donation site 3x3.org.
testingyou is online now   Reply With Quote
Old 08-17-2009, 06:59 PM   #6 (permalink)
First Time Poster!
 
Join Date: Jul 2009
Posts: 1
0.00 NP$ (Donate)

ZeroViz is an unknown quantity at this point



This may be some help also... .htaccess Online Editor you can create your htaccess online.
ZeroViz is offline   Reply With Quote
Old 09-03-2009, 01:17 PM   #7 (permalink)
New Member
 
Join Date: Sep 2009
Posts: 2
0.00 NP$ (Donate)

myhostingbox is an unknown quantity at this point



nice discussion
__________________
Best hosting
myhostingbox is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


All times are GMT -7. The time now is 11:50 AM.

Contact Us - NamePros.com - Privacy Statement - Top
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.2