1
mrphilong
Xoops .htacess on Godday
  • 2012/8/8 10:18

  • mrphilong

  • Quite a regular

  • Posts: 351

  • Since: 2006/7/14


Hi All,

I've spent a long time trying to get URL Rewrite to work but I've failed

If you are using Godaddy or have a few tips pointing me to the right direction, much appreciated.

I have a www.mydomain.com hosted at Godaddy, all the files are in a folder called ABC

My .htaccess file

This part works, if i typed mydomain.com it rewrite to www.mydomain.com

Quote:


Options +FollowSymLinks
Options -MultiViews
RewriteEngine on

RewriteBase /
RewriteCond %{HTTP_HOST} ^mydomain\.com
RewriteRule (.*)http://www.mydomain.com/$1 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d



the below tested working on local webserver but not on Godaddy.

Quote:

RewriteRule ^songlist/([a-zA-Z0-9]+)/(.*?)/([a-zA-Z]+)-([a-zA-Z]+)-([0-9]+).html modules/songlist/$1.php?op=$3&fct=$4&id=$5 [L,NC,QSA]
RewriteRule ^songlist/([a-zA-Z0-9]+)/(.*?)/([a-zA-Z]+)-([a-zA-Z]+)-([0-9]+)-([0-9]+)-([0-9]+).html modules/songlist/$1.php?op=$3&fct=$4&id=$5&gid=$6&cid=$7 [L,NC,QSA]
RewriteRule ^songlist/([a-zA-Z0-9]+)/(.*?)/([0-9]+)-([0-9]+)-([a-zA-Z]+)-([a-zA-Z]+)-([0-9]+)-([0-9]+)/(.*?).html modules/songlist/$1.php?start=$3&id=$4&op=$5&fct=$6&gid=$7&cid=$8&value=$9
RewriteRule ^songlist/([a-zA-Z0-9]+)/(.*?)/([0-9]+)-([0-9]+)-([a-zA-Z]+)-([a-zA-Z]+)-([0-9]+)-([0-9]+).html modules/songlist/$1.php?start=$3&id=$4&op=$5&fct=$6&gid=$7&cid=$8
RewriteRule ^songlist/([a-zA-Z0-9]+)/(.*?)/([a-zA-Z]+)-([a-zA-Z]+)-([0-9]+)-([0-9]+)-([0-9]+)/(.*?).html modules/songlist/$1.php?op=$3&fct=$4&id=$5&value=$8&gid=$6&cid=$7 [L,NC,QSA]
RewriteRule ^songlist/([a-zA-Z0-9]+)/([a-zA-Z0-9]+)-([a-zA-Z0-9]+)-([0-9]+).html modules/songlist/$1.php?op=$2&fct=$3&id=$4 [L,NC,QSA]
RewriteRule ^songlist/([a-zA-Z0-9]+)/([a-zA-Z0-9]+)-([a-zA-Z0-9]+).html modules/songlist/$1.php?op=$2&fct=$3 [L,NC,QSA]
RewriteRule ^songlist/([a-zA-Z0-9]+)/([0-9]+)-([0-9]+)-([a-zA-Z]+)-([a-zA-Z]+)-([0-9]+)-([0-9]+).html modules/songlist/$1.php?start=$2&id=3&op=$4&fct=$5&gid=$6&cid=$7 [L,NC,QSA]#RewriteRule ^songlist/([a-zA-Z0-9]+)/([0-9]+)-([a-zA-Z]+)-([a-zA-Z]+)-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+).html modules/songlist/$1.php?start=$2&op=$3&fct=$4&id=$5&gid=$6&vcid=$7&cid=$8 [L,NC,QSA]
RewriteRule ^songlist/([a-zA-Z0-9]+)/([0-9]+)-([a-zA-Z]+)-([a-zA-Z]+)-([0-9]+)-([0-9]+)-([0-9]+).html modules/songlist/$1.php?start=$2&op=$3&fct=$4&gid=$5&cid=$6&vcid=$7 [L,NC,QSA]
RewriteRule ^songlist/([a-zA-Z0-9]+)/([0-9]+)-([a-zA-Z]+)-([a-zA-Z]+)-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)/(.*?).html modules/songlist/$1.php?start=$2&op=$3&fct=$4&id=$5&value=$9&gid=$6&cid=$7&vcid=$8 [L,NC,QSA]
RewriteRule ^songlist/([a-zA-Z0-9]+)/([0-9]+)-([0-9]+)-([a-zA-Z]+)-([a-zA-Z]+)-([0-9]+)-([0-9]+)-([0-9]+)/(.*?).html modules/songlist/$1.php?start=$2&id=$3&op=$4&fct=$5&value=$8&gid=$6&cid=$7 [L,NC,QSA]
RewriteRule ^songlist/([a-zA-Z0-9]+)/([0-9]+)-([0-9]+)-([a-zA-Z]+)-([a-zA-Z]+)-([0-9]+)-([0-9]+)/(.*?).html modules/songlist/$1.php?start=$2&id=3&op=$4&fct=$5&gid=$6&cid=$7&value=$8 [L,NC,QSA]
RewriteRule ^songlist/([a-zA-Z0-9]+)/([0-9]+)-([a-zA-Z]+)-([a-zA-Z]+)-([0-9]+)-([0-9]+)-([0-9]+)/(.*?).html modules/songlist/$1.php?start=$2&op=$3&fct=$4&value=$8&gid=$5&cid=$6&vcid=$7 [L,NC,QSA]

Login

Who's Online

225 user(s) are online (153 user(s) are browsing Support Forums)


Members: 0


Guests: 225


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits