Jump to content

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

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?

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.