| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| Senior Member Join Date: Aug 2007 Location: Copenhagen - Denmark
Posts: 1,789
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | ..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. |
| | |
| | #2 (permalink) |
| Senior Member Join Date: Jul 2005 Location: NJ
Posts: 1,219
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 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
__________________ Hacksar.com - Your source for random computer tips and tricks! MySiteMemberships.com - Keep track of your site registration information! Like my post? Rep is appreciated! |
| | |
| | THREAD STARTER #3 (permalink) |
| Senior Member Join Date: Aug 2007 Location: Copenhagen - Denmark
Posts: 1,789
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 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. |
| | |
| | #4 (permalink) |
| Senior Member Join Date: Jun 2007 Location: NamePros.com
Posts: 1,400
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 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 |
| | |
| | THREAD STARTER #5 (permalink) |
| Senior Member Join Date: Aug 2007 Location: Copenhagen - Denmark
Posts: 1,789
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 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. |
| | |
| | #6 (permalink) |
| First Time Poster! Join Date: Jul 2009
Posts: 1
![]() | This may be some help also... .htaccess Online Editor you can create your htaccess online. |
| | |
| | #7 (permalink) |
| New Member Join Date: Sep 2009
Posts: 2
![]() | nice discussion
__________________ Best hosting |
| | |
![]() |
| 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 |