I have it working on localhost, as well as on a free hosting service I test things on, but on godaddy it won't work!
In my root directory, I have a folder called blog
and inside there is a file called article.php
My htaccess should rewirte
http://www.bragdeal.com/blog/article.php?id=9 to http://www.bragdeal.com/blog/article/9
and
http://www.bragdeal.com/blog/index.php?page=2 to http://www.bragdeal.com/blog/page/2
Options -Indexes -MultiViews +FollowSymlinks
RewriteEngine On
RewriteBase /
AddDefaultCharset utf-8
SetEnv SERVER_ADMIN support@bragdeal.com
FileETag none
#force HTTP
RewriteCond %{HTTPS} on
RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
#article id
RewriteCond %{THE_REQUEST} /blog/article\.php\?id=([^\s&]+) [NC]
RewriteRule ^ blog/article/%1? [R=302,L]
RewriteRule ^blog/article/([^/.]+)/?$ blog/article.php?id=$1 [L,QSA,NC]
#page number
RewriteCond %{THE_REQUEST} /blog/index\.php\?page=([^\s&]+) [NC]
RewriteRule ^ blog/page/%1? [R=302,L]
RewriteRule ^blog/page/([^/.]+)/?$ blog/index.php?page=$1 [L,QSA,NC]
#------------------ remove index.php ---------------------------------
RewriteCond %{THE_REQUEST} /(?:index)?(.*?)\.php[\s?] [NC]
RewriteRule ^ %1 [R=302,L,NE]
# remove /index
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /(.*)index($|\ |\?)
RewriteRule ^ /%1 [R,L]
#-------------------remove .php-----------------------------------------
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI}\.php -f [NC]
RewriteRule ^(.+?)/?$ $1.php [L]
Why is it not working on godaddy's hosting? I literally copied all my files from localhost to godaddy expecting it to be identical