htaccess mod_rewrite issue...

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
logonchristy
Forum Newbie
Posts: 4
Joined: Thu Feb 25, 2010 10:54 pm

htaccess mod_rewrite issue...

Post 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.
User avatar
Darhazer
DevNet Resident
Posts: 1011
Joined: Thu May 14, 2009 3:00 pm
Location: HellCity, Bulgaria

Re: htaccess mod_rewrite issue...

Post 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
logonchristy
Forum Newbie
Posts: 4
Joined: Thu Feb 25, 2010 10:54 pm

Re: htaccess mod_rewrite issue...

Post by logonchristy »

great!... Thanks a lot...
Post Reply