Jump to content

[SOLVED] quick htaccess question


glenelkins

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.