Forum Moderators: phranque

Message Too Old, No Replies

RewriteBase in .htaccess file

         

Arslan

10:44 am on Feb 24, 2007 (gmt 0)

10+ Year Member



I wnant to know the settings of .htaccess file. My .htaccess file is,


#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]

I have installed the script at, www.mydomain.com/myhost/

Should I have to edit it like,


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

coopster

10:30 pm on Feb 26, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld, Arslan.

Are you asking if you need to use RewriteBase [httpd.apache.org] in this context? The link provided should help you decide.