emgineering
09-27-2009, 03:09 AM
Hello I'm new at making websites and copied .htaccess code and I need some help to get the file to work with godaddy.com
here is my code:
Options +FollowSymlinks
RewriteEngine On
RewriteRule ^best$ sort.php?by=best
RewriteRule ^best/([day|week]+)/([0-9]+)$ sort.php?by=best&by2=$1&id=$2 [L]
RewriteRule ^best/([most\-commented|least\-commented]+)$ sort.php?by=best&by3=$1 [L]
RewriteRule ^worst$ sort.php?by=worst [L]
RewriteRule ^worst/([day|week]+)/([0-9]+)$ sort.php?by=worst&by2=$1&id=$2 [L]
RewriteRule ^worst/([most\-commented|least\-commented]+)$ sort.php?by=worst&by3=$1 [L]
# the profile access format is: /username
RewriteRule ^user/([a-z,A-Z,0-9]+)$ profile.php?user=$1 [L]
RewriteRule ^([-,a-z,A-Z,0-9]+)$ index.php?c=$1 [L]
RewriteRule ^comment/([0-9]+) index.php?comp=$1 [L]
#by=best&by2=day&id=1247612400
#by=best&by2=week&id=1247439600
#by3=mcom
#by3=lcom
#best-compliments-by-day-1247612400-mcom
I hear godaddy has some issues with .htaccess and couldn't find any type of help online on how to fix it. I would greatly appreciate your help, thank you!
here is my code:
Options +FollowSymlinks
RewriteEngine On
RewriteRule ^best$ sort.php?by=best
RewriteRule ^best/([day|week]+)/([0-9]+)$ sort.php?by=best&by2=$1&id=$2 [L]
RewriteRule ^best/([most\-commented|least\-commented]+)$ sort.php?by=best&by3=$1 [L]
RewriteRule ^worst$ sort.php?by=worst [L]
RewriteRule ^worst/([day|week]+)/([0-9]+)$ sort.php?by=worst&by2=$1&id=$2 [L]
RewriteRule ^worst/([most\-commented|least\-commented]+)$ sort.php?by=worst&by3=$1 [L]
# the profile access format is: /username
RewriteRule ^user/([a-z,A-Z,0-9]+)$ profile.php?user=$1 [L]
RewriteRule ^([-,a-z,A-Z,0-9]+)$ index.php?c=$1 [L]
RewriteRule ^comment/([0-9]+) index.php?comp=$1 [L]
#by=best&by2=day&id=1247612400
#by=best&by2=week&id=1247439600
#by3=mcom
#by3=lcom
#best-compliments-by-day-1247612400-mcom
I hear godaddy has some issues with .htaccess and couldn't find any type of help online on how to fix it. I would greatly appreciate your help, thank you!