Solved

PHP Link Fail

Posted on 2011-02-24
5
337 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
Comment Utility
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
Comment Utility
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
Comment Utility
I'm off to bed.  I'll check this again tomorrow.  Thanks for the input so far.  :)
0
 
LVL 5

Expert Comment

by:onemadeye
Comment Utility
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
Comment Utility
Failure is in IE (64 Bit)
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Consider the following scenario: You are working on a website and make something great - something that lets the server work with information submitted by your users. This could be anything, from a simple guestbook to a e-Money solution. But what…
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 dynamically set the form action using jQuery.

771 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