What's wrong with this htaccess file?

Head out to http://www.qardboard.com/2 and compare that to http://www.qardboard.com/qr/index.phph?id=2

They should both look the same and they don't. I'm missing a big background image and I can't figure out what the problem is. The fact that the http://www.qardboard.com/qr/index.phph?id=2 url looks so much better makes me think something is flawed with my htaccess file.

Here it is:

addhandler x-httpd-php-cgi .php4
addhandler x-httpd-php5-cgi .php
addhandler x-httpd-php5-cgi .php5

AddType x-mapp-php5 .php
Options +FollowSymLinks

RewriteEngine on
RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ([0-9]+)$ qr/index.php?id=$1 [L,NC,QSA]

What am I missing?
brucegustPHP DeveloperAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Dave BaldwinFixer of ProblemsCommented:
First off, you're on Godaddy on a Linux server so all those PHP lines are unnecessary.  My Linux hosting there is already setup for CGI/FastCGI without adding anything to .htaccess.  I suspect that FollowSymLinks is too unless you are on a dedicated server.
brucegustPHP DeveloperAuthor Commented:
Yeah, but Dave it's "working" only it won't show those background graphics. Can you envision anything else that may be happening that would prevent those background graphics from showing up?
One url says be not found and another with all images not shown properly.

Probably i think the link you are talking about should be this

or this one

I hope the linux not taking up the url correctly.I too had this type of problem.

try having your htaccess set to this

SetEnv APPLICATION_ENV development
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} -s [OR]
    RewriteCond %{REQUEST_FILENAME} -l [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^.*$ - [NC,L]
    RewriteRule ^.*$ index.php [NC,L]

Open in new window

Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

Dave BaldwinFixer of ProblemsCommented:
Well Bruce, I wouldn't call that "working".
brucegustPHP DeveloperAuthor Commented:
Guys, I had one other problem that I have since fixed so the only that's keeping this puppy from firing on all cylinders is the issue of why this graphic: http://www.myqardboard.com/images/iphone_4_portrait.png doesn't show up.

Every other piece of formatting from the steel background image to the size and color of the fonts is happening, but the background image doesn't show up.

If you go out to http://www.myqardboard.com/qr/index.php?id=2, you'll see the page the htaccess file is pointing my user to. Everything is showing up exactly as it should except for that one background image.

Why? What am I missing and how can I fix it?

And I have changed my stylesheet so all images are being referenced absolutely.
Please be clear of what background you are missing.Can you post the screen shot of which background you mean at.

Below is the screen shot of the link you mentioned to.
brucegustPHP DeveloperAuthor Commented:
Sorry, what you're looking at is pristine. My problem is when you go to http://www.qardboard.com/2. At that point I'm missing iPhone_4_portrait.png
Dave BaldwinFixer of ProblemsCommented:
That's because 'profile_background' is missing in the CSS for that page.  The page that works has 'profile_background' as one of the first items.  And the name of the file is iPhone_5_portrait.png   Whether you know it or not, there are two different "stylesheet.css" files and they are not the same.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
brucegustPHP DeveloperAuthor Commented:
Dave, you rock and it's just that simple!

I was at a Rotary meeting this morning and they typically kick things off by asking "What's your good news?" My good news was that I was now poised on the threshold of greatness because a problem that I've been wrestling with for the last few days has been solved thanks to the ninjas at experts-exchange!

I don't care if it was painfully obvious to some, I've been bashing my cranium up against the bulkhead, unable to figure out why and / or what...

It's all good now, though!

One last thing: Just so I can better understand the reason this was occurring. Although the htaccess dynamic was properly rerouting people to the qr directory, by default, my page is still grabbing from the root directory, or at least that's what I need to remember going forward when I've got a stylesheet that has been assigned an absolute url. Is that correct?

Thanks again!
brucegustPHP DeveloperAuthor Commented:
The last paragraph of my parting comment...

Although the htaccess dynamic was properly rerouting people to the qr directory, by default, my page is still grabbing from the root directory, or at least that's what I need to remember going forward when I've got a stylesheet that has NOT been assigned an absolute url. Is that correct?
Dave BaldwinFixer of ProblemsCommented:
I have no clue at this point.  All I saw was that you managed to serve up two different CSS files.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.