We're a community of 1076K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,075,628 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

htaccess Issues with Rewrites

I am in the process of trying to customize my site's URLs and I'm running into an issue with my htaccess file, specifically the newest one I am trying to add. Here's the file --

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ $1.php [L,QSA]
RewriteRule ^/retail/(.*)$ retail.php?id=$1

The first condition removes the extensions from the site so that I can go to index instead of index.php. This is working great with no issues. It's the next one down that's causing problems. it's basically not working at all. So when I visit my site and go to domain.com/retail/100, it's displaying a 500 Error.

I'm not as familiar with apache and customizing it through the htaccess file so if you all could tell me what I'm doing wrong it would be much appreciated! Thanks! :)

1
Contributor
0
Replies
2
Views
jrotunda85
Junior Poster
145 posts since Feb 2011
Reputation Points: 19
Solved Threads: 7
Skill Endorsements: 0

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page rendered in 0.0571 seconds using 2.77MB