htaccess mod_rewrite issue...
Posted: Thu Feb 25, 2010 11:01 pm
Options +FollowSymLinks
RewriteEngine on
RewriteBase /
#This is what we need : http://www.ourdomain.com/hotels/north-america/
#working in localhost, but not in godaddy server
RewriteRule ^hotels/([a-zA-Z0-9_-]+)/$ continent.php?continent=$1
#This will work in godaddy server, but not in localhost: #http://www.ourdomain.com/hotels_north-america.html
RewriteRule ^hotels_([a-zA-Z0-9_-]+)\.html$ continent.php?continent=$1
#But these two solution is conflict in localhost and godaddy server.
RewriteEngine on
RewriteBase /
#This is what we need : http://www.ourdomain.com/hotels/north-america/
#working in localhost, but not in godaddy server
RewriteRule ^hotels/([a-zA-Z0-9_-]+)/$ continent.php?continent=$1
#This will work in godaddy server, but not in localhost: #http://www.ourdomain.com/hotels_north-america.html
RewriteRule ^hotels_([a-zA-Z0-9_-]+)\.html$ continent.php?continent=$1
#But these two solution is conflict in localhost and godaddy server.