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 Link to comment https://forums.phpfreaks.com/topic/155950-solved-quick-htaccess-question/ 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? Link to comment https://forums.phpfreaks.com/topic/155950-solved-quick-htaccess-question/#findComment-820931 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 Link to comment https://forums.phpfreaks.com/topic/155950-solved-quick-htaccess-question/#findComment-820953 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.