Page 1 of 1

htaccess mod_rewrite issue...

Posted: Thu Feb 25, 2010 11:01 pm
by logonchristy
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.

Re: htaccess mod_rewrite issue...

Posted: Fri Feb 26, 2010 4:09 am
by Darhazer
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

Re: htaccess mod_rewrite issue...

Posted: Fri Feb 26, 2010 5:31 am
by logonchristy
great!... Thanks a lot...