Jump to content

url problems


snrecords

Recommended Posts

I can't figure out why ampersands, commas, and apostrophes don't work in my dynamic urls.

 

Please go to http://www.tasteofaloha.com/casual  ...  and try to click on

 

A&W Restaurant & Long John Silvers ... it doesn't work because of the ampersand.  Now try to click on Anna Miller\'s 24 Hr Restaurant ... it doesn't work either.  Even with stripslashes it doesn't work.

 

I have redirects coding in where the restaurant name variable is the url.

 

Below is my .htaccess file code:

 

RewriteEngine on

RewriteBase /
RewriteRule ^oahu/(.+) result.php?island=1&cuisine=$1 [nc]

RewriteRule ^maui/(.+) result.php?island=2&cuisine=$1

RewriteRule ^kauai/(.+) result.php?island=3&cuisine=$1

RewriteRule ^big\+\island/(.+) result.php?island=4&cuisine=$1

RewriteRule ^molokai/(.+) result.php?island=5&cuisine=$1

RewriteRule ^lanai/(.+) result.php?island=6&cuisine=$1


RewriteRule ^oahu$ result.php?island=1

RewriteRule ^maui$ result.php?island=2

RewriteRule ^kauai$ result.php?island=3

RewriteRule ^big\+\island$ result.php?island=4

RewriteRule ^molokai$ result.php?island=5

RewriteRule ^lanai$ result.php?island=6

RewriteRule ^([a-z0-9+A-Z]+)$ result.php?cuisine=$1 [nc]





 

Please Help!

Link to comment
https://forums.phpfreaks.com/topic/103777-url-problems/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.