Forum Moderators: phranque
I am using the following code
RewriteEngine On
RewriteRule ^([a-z-]+)/([a-z-]+)?/?$ bandpageurl.php?bandurl=$1§ion=$2 [L]
Which sends
mysite.com/the-band-name/home
to
mysite.com/bandpageurl.php?bandurl=the-band-name§ion=home
All is working fine and links within the pages are working too. Here is my problem; on this page I have a few includes. Within the includes are a few links which bring up popup windows. It uses the following code:
<?php echo"<a href= \"$urlrev\" onclick=\"window.open('$urlrev','popup','width=420,height=350,scrollbars=yes,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=50,top=100');return false\"><u>View all reviews written by this member</u></a>";?>
But every popup I have on these pages bring a 404.
If I manually direct my browser to
mysite.com/bandpageurl.php?bandurl=the-band-name§ion=home, the js popups work fine on the page.
All works fine. Does JS try to look at the URL for the path? I noticed that if I just mouse over the links it shows the correct path.
Please help, this one is urgent!
Thanks