raduenea Posted June 19, 2012 Share Posted June 19, 2012 Hi How can I simplify the mod_rewrite: Syntax: [ Download ] [ Hide ] [ Select ] RewriteRule ^picturi~peisaj-rural~([0-9]+)$ index.php?page=picturi&filtru=subiecte-detaliate&tip=peisaj-rural&gal=$1 [QSA,L] RewriteRule ^picturi~peisaj-urban~([0-9]+)$ index.php?page=picturi&filtru=subiecte-detaliate&tip=peisaj-urban&gal=$1 [QSA,L] RewriteRule ^picturi~rauri~([0-9]+)$ index.php?page=picturi&filtru=subiecte-detaliate&tip=rauri&gal=$1 [QSA,L] RewriteRule ^picturi~abstract~([0-9]+)$ index.php?page=picturi&filtru=subiecte-generale&tip=abstract&gal=$1 [QSA,L] RewriteRule ^picturi~altele~([0-9]+)$ index.php?page=picturi&filtru=subiecte-generale&tip=altele&gal=$1 [QSA,L] RewriteRule ^picturi~animale~([0-9]+)$ index.php?page=picturi&filtru=subiecte-generale&tip=animale&gal=$1 [QSA,L] RewriteRule ^picturi~compozitie~([0-9]+)$ index.php?page=picturi&filtru=subiecte-generale&tip=compozitie&gal=$1 [QSA,L] Idea is not to show in the address bar "subiecte-detaliate" and "subiecte-generale", that why I use to insert manually each category in htaccess. It's there a simple way? Thanks Link to comment https://forums.phpfreaks.com/topic/264422-simple-mod_rewrite/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.