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.
htaccess mod_rewrite issue...
Moderator: General Moderators
-
logonchristy
- Forum Newbie
- Posts: 4
- Joined: Thu Feb 25, 2010 10:54 pm
Re: htaccess mod_rewrite issue...
What happens with the first rule on GoDaddy? 404? Or something else? Do you have a file named hotels.php? If so, try adding
Code: Select all
Options -MultiViews-
logonchristy
- Forum Newbie
- Posts: 4
- Joined: Thu Feb 25, 2010 10:54 pm
Re: htaccess mod_rewrite issue...
great!... Thanks a lot...