NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page ..htaccess help needed please. (nonpaid) :)

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

Advanced Search


Reply
 
LinkBack Thread Tools
Old 07-04-2009, 11:51 AM THREAD STARTER               #1 (permalink)
Senior Member
Join Date: Aug 2007
Location: Copenhagen - Denmark
Posts: 1,789
testingyou has much to be proud oftestingyou has much to be proud oftestingyou has much to be proud oftestingyou has much to be proud oftestingyou has much to be proud oftestingyou has much to be proud oftestingyou has much to be proud oftestingyou has much to be proud oftestingyou has much to be proud of
 



..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.
__________________
World Food Programme - No Children Should Go To Bed Hungry. It's simple, it's not rocket science, not political, not cultural, not religion, not complicated... It's this simple!.
I have decided that I will donate 10% of what I make from selling domain names in 2012 to the above programme.
testingyou is offline   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,219
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 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 THREAD STARTER               #3 (permalink)
Senior Member
Join Date: Aug 2007
Location: Copenhagen - Denmark
Posts: 1,789
testingyou has much to be proud oftestingyou has much to be proud oftestingyou has much to be proud oftestingyou has much to be proud oftestingyou has much to be proud oftestingyou has much to be proud oftestingyou has much to be proud oftestingyou has much to be proud oftestingyou has much to be proud of
 



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.
????: NamePros.com http://www.namepros.com/programming/594332-htaccess-help-needed-please-nonpaid.html

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.
__________________
World Food Programme - No Children Should Go To Bed Hungry. It's simple, it's not rocket science, not political, not cultural, not religion, not complicated... It's this simple!.
I have decided that I will donate 10% of what I make from selling domain names in 2012 to the above programme.
testingyou is offline   Reply With Quote
Old 07-04-2009, 04:59 PM   #4 (permalink)
Senior Member
 
Dave's Avatar
Join Date: Jun 2007
Location: NamePros.com
Posts: 1,400
Dave has much to be proud ofDave has much to be proud ofDave has much to be proud ofDave has much to be proud ofDave has much to be proud ofDave has much to be proud ofDave has much to be proud ofDave has much to be proud ofDave has much to be proud of
 


Cancer

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
Dave is offline   Reply With Quote
Old 07-05-2009, 11:24 AM THREAD STARTER               #5 (permalink)
Senior Member
Join Date: Aug 2007
Location: Copenhagen - Denmark
Posts: 1,789
testingyou has much to be proud oftestingyou has much to be proud oftestingyou has much to be proud oftestingyou has much to be proud oftestingyou has much to be proud oftestingyou has much to be proud oftestingyou has much to be proud oftestingyou has much to be proud oftestingyou has much to be proud of
 



Thank you Dave.

Repped you.
__________________
World Food Programme - No Children Should Go To Bed Hungry. It's simple, it's not rocket science, not political, not cultural, not religion, not complicated... It's this simple!.
I have decided that I will donate 10% of what I make from selling domain names in 2012 to the above programme.
testingyou is offline   Reply With Quote
Old 08-17-2009, 06:59 PM   #6 (permalink)
First Time Poster!
Join Date: Jul 2009
Posts: 1
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
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[ask] HtAccess rewrite for clean url xrvel Programming 1 12-24-2007 12:29 AM
Quick! - Small flash header animation needed - NP$ 145 Virgil Design Contests 4 07-21-2005 03:23 PM
game designer(s) needed... ajrball7 Graphic Design / Flash 4 03-05-2004 04:15 PM
game designer needed... ajrball7 Programming 3 02-14-2004 10:44 AM

Liquid Web Smart Servers  
All times are GMT -7. The time now is 06:40 PM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger