Solved

PHP Link Fail

Posted on 2011-02-24
5
345 Views
Last Modified: 2012-05-11
I had a friend call me up with an issue on her site.  All of her pages are linked as follows:

http://www.brinkstreetphotography.com/site/#/home/
http://www.brinkstreetphotography.com/site/#/portraits/
http://www.brinkstreetphotography.com/site/#/contact/
etc...

This works fine in FF, but fails miserably in IE.  If the '#' is removed, as IE is inclined to do for you, the link fails.  I can answer question related to directory structure, etc.  I am not a PHP guy, but I can work my way around with a little prodding.  :)

Why is the # there?  How do I get rid of it and still access the link?
0
Comment
Question by:brianmfalls
  • 3
5 Comments
 
LVL 17

Accepted Solution

by:
psimation earned 500 total points
ID: 34977250
It looks like there are some kind of URL rewriting active on the site, most likely due to SEF needs.

If this is a UNix/Linux server, then look for a file called .htaccess in the root - the rewrite rules will be in there.

0
 
LVL 1

Author Comment

by:brianmfalls
ID: 34977281
Here's the code from the htaccess at the root of the site directory.
<IfModule mod_rewrite.c>

# Enables mod_rewrite
RewriteEngine on

# Sets the base folder of the site
RewriteBase  /jackson/site/

RewriteCond  %{REQUEST_FILENAME}    !-f
RewriteCond  %{REQUEST_FILENAME}    !-d
RewriteRule  .*                     index.php

</IfModule>

Open in new window

0
 
LVL 1

Author Comment

by:brianmfalls
ID: 34977389
I'm off to bed.  I'll check this again tomorrow.  Thanks for the input so far.  :)
0
 
LVL 5

Expert Comment

by:onemadeye
ID: 34988359
I really wonder what do you mean by "This works fine in FF, but fails miserably in IE" because I checked to open those links in both IE8 and FF3.6.x and they both looks fine.

If the '#' is removed then all links will fail both in IE and FF.

Why is the # there?  
Well, I think it works like the anchor tag in your flash file. I believe you might seen such link like this :
http://www.someothersite.com/index.html#topofthepage

How do I get rid of it and still access the link?
I think you should ask your programmer to modify the flash file and assign a new linking for each of tha pages.
0
 
LVL 1

Author Comment

by:brianmfalls
ID: 34999397
Failure is in IE (64 Bit)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

930 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now