.htaccess oddness

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
Todd_Z
Forum Regular
Posts: 708
Joined: Thu Nov 25, 2004 9:53 pm
Location: U Michigan

.htaccess oddness

Post by Todd_Z »

Code: Select all

ErrorDocument 404 /Error/

RewriteEngine On

RewriteRule ^Rss$ /Scripts/RssProjects.php
RewriteRule ^Paypal$ /Scripts/Paypal.php
RewriteRule ^Glossary/(.*)$ /Scripts/Glossary.php#$1

RewriteRule ^(їa-zA-Z0-9]*)/(їa-zA-Z0-9]*)/(їa-zA-Z0-9]*)/$ /?p=$1&q=$2&r=$3
RewriteRule ^(їa-zA-Z0-9]*)/(їa-zA-Z0-9]*)/$ /?p=$1&q=$2
RewriteRule ^(їa-zA-Z0-9]*)/$ /?p=$1
So thats my .htaccess- when I put in something like http://www.domain.com/Home/ however, it loads 3 different pages... Im guessing because it fits the 3 lowest rewrite rules? Idk, but anyways, how do I make it quit if it matches a rewrite rule?
Post Reply