خرید بک لینک

Vote count: 0

I have modified my .htaccess file to rewrite urls.

My code needs to rewrite .../view_cat.php?cat=1 into .../11klassniki. It works totally fine when it goes right in the end.

However, when another page uses the same part of url in the middle, .htaccess ignores it (correct me if I am wrong).

Here is the example:

.../view_cat.php?cat=1&page=2 works as a valid url, however it supposed to be rewritten by .htaccess as .../11klassniki&page=2, but somehow it doesn't do it.

Here is my code:

RewriteRule ^11klassniki$ /view_cat.php?cat=1$ [L]
RewriteCond %{THE_REQUEST} " /view_cat.php?cat=1 "
RewriteRule ^ /11klassniki? [R=301,L]

asked 1 min ago

برچسب: نویسنده: استخدام کار تاريخ: يکشنبه 13 تير 1395 ساعت: 10:47

صفحه بندی