Jump to content

htaccess problem


raduenea

Recommended Posts

Hy

 

I have in a website 2 kind of links:

 

index.php?cat=not&id=12

 

and

 

index.php?search=something&cat=vid

 

The htaccess script:

RewriteEngine on
RewriteBase /
ErrorDocument 404 /error.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/\.]+)/([^/\.]+)/?$ index.php?cat=$1&id=$2 [L]
RewriteRule ^([^/\.]+)/([^/\.]+)/?$ index.php?search=$1&cat=$2 [L]

 

In the php code how can i now how it will be between two rewriterule because each one have 2 variables??

 

notebook/12

Link to comment
https://forums.phpfreaks.com/topic/144031-htaccess-problem/
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.