Код: Выделить всё
Options +FollowSymLinks
RewriteEngine On
#### 1st set of rules.... ####
#Using THE_REQUEST for catching references and using them later on.
RewriteCond %{THE_REQUEST} \s/(content)/index\.php\?var=(.*?)\s [NC]
RewriteRule ^ /%1/featured/%2? [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(content)/featured/(.*?)/?$ $1/index.php?var=$2 [QSA,NC,L]
#### 2nd set of rules.... ####
#Using THE_REQUEST for catching references and using them later on.
RewriteCond %{THE_REQUEST} \s/(profile)\.php\?userid=(.*?)\s [NC]
RewriteRule ^ /%1%2? [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(profile)/(.*?)/?$ $1.php?userid=$2 [QSA,NC,L]
Я добавил это, но оно нарушает работу сайта...
Код: Выделить всё
#### 3rd set of rules.... ####
#Using THE_REQUEST for catching references and using them later on.
RewriteCond %{THE_REQUEST} \s/(content)/(cat)/\catview\.php\?cattype=(.*?)\s [NC]
RewriteRule ^ /%1%2? [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(content)/(cat)/catview.php/?$ $1.php?cattype=$2 [QSA,NC,L]
Я погуглил и прочитал старые сообщения. Я прочитал учебники. Я не очень хорошо понимаю mod_rewrite, так как это похоже на буквенно-цифровой набор слов, и прошу помощи
Подробнее здесь: https://stackoverflow.com/questions/791 ... irs-and-va
Мобильная версия