Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP Enhancing a Simple PHP Application Cleaning URLs with Rewrite Rules Rewrite Rules with Query Strings

It seems that the query string works fine with safari and firefox on mac, but for my case it doesn't work with chrome?

Is there a fix for chrome to work?

2 Answers

I'm pretty sure all of this should be sorted on the server - so it shouldn't make a difference which browser you use... But I could be wrong! Have you tried clearing your sessions/cache/cookies on the browser that isn't working?

It works like a charm. Thanks. One more question: How can I use a variable or a constant in .htaccess file? Right now I have placed my php files in a folder and later if I want to change the folder I have to modify all the rewrite rules in the .htaccess file.