DNforum.com - Domain Sales, Domain Forum, Domain Appraisals
 
Register Now! Welcome to Dnforum.com You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast and simple so please, join our community today! If you have any problems with the registration process or your account login, please contact us.
Go Back   DNForum - Domain Sales, Domain Forum, Domain Appraisals, Domain Registrars > Content Development > Website Development and Design Discussion > Coding/Programming/Languages
Start your Domain Reseller Business Today and Earn Money!
Reply
 
LinkBack Thread Tools Display Modes
Old 02-25-2007, 06:59 AM   #1 (permalink)
Gold Lifetime Member
 
Last Online: 09-16-2007 07:48 AM
iTrader: (3)
Join Date: Feb 2006
Posts: 149
DNF$: 121


Configuring .htaccess file?

My .htaccess is like this,
Code:
#RewriteEngine on
##point to installation directory
##if it is the root dir,enter /
#RewriteBase  /
If I have installed it on,

www.mydomain.com/host/

then how should I configure this?

Please help me with this.
SUNNY ARSLAN is offline   Reply With Quote
Old 02-25-2007, 10:06 AM   #2 (permalink)
The Bishop
 
namestrands's Avatar
 
Last Online: 06-10-2008 07:07 AM
iTrader: (109)
Join Date: Jan 2005
Posts: 3,804
DNF$: 2,015
Location: UK
Country:


Re: Configuring .htaccess file?

Not sure what you want it to do. Can you explain.
__________________
Parked.com - The Valet Domain Parking That Pays
Offers Made Are Valid for 12 Hours from Post Time.
namestrands is offline   Reply With Quote
Old 02-25-2007, 02:14 PM   #3 (permalink)
Platinum Lifetime Member
 
Name: Jason
Last Online: 06-10-2008 02:27 PM
iTrader: (10)
Join Date: Nov 2006
Posts: 493
DNF$: 5,125
Location: USA
Country:


Re: Configuring .htaccess file?

Take off one character from the beginning of each line. The script executes as commented.
JRBHosting is offline   Reply With Quote
Old 02-25-2007, 02:51 PM   #4 (permalink)
The Bishop
 
namestrands's Avatar
 
Last Online: 06-10-2008 07:07 AM
iTrader: (109)
Join Date: Jan 2005
Posts: 3,804
DNF$: 2,015
Location: UK
Country:


Re: Configuring .htaccess file?

in other words the script should look like

Code:
RewriteEngine on
##point to installation directory
##if it is the root dir,enter /
RewriteBase  /
__________________
Parked.com - The Valet Domain Parking That Pays
Offers Made Are Valid for 12 Hours from Post Time.
namestrands is offline   Reply With Quote
Old 02-26-2007, 12:33 AM   #5 (permalink)
Gold Lifetime Member
 
Last Online: 09-16-2007 07:48 AM
iTrader: (3)
Join Date: Feb 2006
Posts: 149
DNF$: 121


Re: Configuring .htaccess file?

Complete file is like this,
Code:
#RewriteEngine on
##point to installation directory
##if it is the root dir,enter /
#RewriteBase  /

#RewriteRule   ^show\.php/(.*)$ show2.php?img=$1 [L]
#RewriteRule   ^out\.php/([a-z]{1})(.*)$ out2.php?$1=$2 [L]
#RewriteRule   ^view\.php/(.*)$ view2.php?img=$1 [L]
#RewriteRule   ^image\.php/([a-z]{1})(.*)$ images2.php?$1=$2 [L]
#RewriteRule   ^gallery/([0-9]+)-([^/]*)/(.*)$ gallery.php?gal=$1&img=$3 [L]
#RewriteRule   ^view/([0-9]+)-([^/]*)/(.*)$ gallery_body.php?gal=$1&img=$3 [L]
As I have not installed it on root directory and installed it on www.example.com/host/

should I write host at RewriteBase,

Code:
#RewriteEngine on
##point to installation directory
##if it is the root dir,enter /host/
#RewriteBase  /host/

Last edited by SUNNY ARSLAN; 02-26-2007 at 01:09 AM.
SUNNY ARSLAN is offline   Reply With Quote
Old 02-26-2007, 06:11 AM   #6 (permalink)
NAK
Platinum Lifetime Member
 
NAK's Avatar
 
Name: NAK
Last Online: 02-22-2008 03:02 AM
iTrader: (0)
Join Date: Mar 2005
Posts: 99
DNF$: 301
Location: Singapore & USA
Country:


Re: Configuring .htaccess file?

i still dont understand what your trying to get it to do, why not contact your host?
NAK is offline   Reply With Quote
Old 02-26-2007, 07:47 AM   #7 (permalink)
Platinum Lifetime Member
 
Name: Jason
Last Online: 06-10-2008 02:27 PM
iTrader: (10)
Join Date: Nov 2006
Posts: 493
DNF$: 5,125
Location: USA
Country:


Re: Configuring .htaccess file?

Yes, you should change the rewritebase to the directory you are in.
JRBHosting is offline   Reply With Quote
Reply



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

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
I need .htaccess file and .htpasswd setup to password protect two dir's OgieOgalthorpe Wanted Ads 2 10-16-2004 07:11 AM
M4a.com - Next MP3.com ... hearing offers geekpipe Domains for Sale (Domain Sales) - Fixed Prices Above $100 1 06-28-2004 11:22 PM
M4a.com - Next MP3.com ... hearing offers geekpipe Domains for Sale (Domain Sales) - Fixed Prices Above $100 0 05-15-2004 11:26 PM


All times are GMT -4. The time now is 05:29 AM.
Copyright @2001-2008 DNForum.com

Learn Domains
Promote Domains
Research Domains
Buy Domains
Resell Domains
Park Domains
Sell Domains
Build Domains
Host Domains
Trademark Domains
Domain Domains
manage Domains
Appraise Domains