glenelkins Posted April 28, 2009 Share Posted April 28, 2009 Hi here is my htaccess #DirectoryIndex index.php index.html #Options +FollowSymLinks #RewriteBase /relative/web/path/ <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^(.+) - [PT,L] RewriteRule ^(.*) index.php RewriteRule ^location/([a-z0-9]+)$ location.php?search_location=$1 </IfModule> #php_value register_globals 0 This was standard with the textpattern cms, i added the following line for a custom script: RewriteRule ^location/([a-z0-9]+)$ location.php?search_location=$1 This is however interfearing with the line above RewriteRule ^(.*) index.php how can i make both of those work together? they are both needed Quote Link to comment Share on other sites More sharing options...
glenelkins Posted April 28, 2009 Author Share Posted April 28, 2009 i thought about using something like RewriteRule ^[^location]$ index.php But that doesnt seem to work, shouldnt this mean 'anything that is not "location"' forward to index.php? Quote Link to comment Share on other sites More sharing options...
glenelkins Posted April 28, 2009 Author Share Posted April 28, 2009 figured it out: RewriteRule ^location/([a-z0-9]+)$ location.php?search_location=$1 [L] RewriteRule ^(.*) index.php Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.