raduenea Posted February 6, 2009 Share Posted February 6, 2009 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.