mod rewrite в lighttpd - Visavi.net https://visavi.net/ RSS - Visavi.net https://visavi.net/assets/img/images/logo_small.png RSS - Visavi.net https://visavi.net/ [email protected] (admin) [email protected] (admin) Tue, 24 Dec 2024 03:13:15 +0300 3. <strong>SNELS</strong>, в modules добавил mod_rewrite так оно работает но некоректно https://visavi.net/topics/41355/671185 mod rewrite в lighttpd VolBog Sun, 28 Sep 2014 12:55:45 +0400 Сообщения https://visavi.net/topics/41355/671185 МБ его включить надо для начала? https://visavi.net/topics/41355/671179 mod rewrite в lighttpd Станислав Sun, 28 Sep 2014 04:39:54 +0400 Сообщения https://visavi.net/topics/41355/671179 а вот что в конфиги записую<br> <pre class="prettyprint"> url.rewrite = ( &quot;(&#91;0-9]+)/*$&quot; =&gt; &quot;/index.php?id=$1&quot;, &quot;(&#91;0-9]+)/(&#91;0-9]+)/*$&quot; =&gt; &quot;/index.php?id=$1&amp;page=$2&quot;, &quot;onpage/(&#91;0-9]+)/(&#91;0-9]+)/*$&quot; =&gt; &quot;/index.php?onpage=$1&amp;id=$2&quot;, &quot;sort/(&#91;a-z]+)/(&#91;0-9]+)/*$&quot; =&gt; &quot;/index.php?sort=$1&amp;id=$2&quot;, &quot;prew/(&#91;0-9]+)/(&#91;0-9]+)/*$&quot; =&gt; &quot;/index.php?prew=$1&amp;id=$2&quot;, &quot;view/(&#91;0-9]+)/*$&quot; =&gt; &quot;/view.php?id=$1&quot;, &quot;view/(&#91;0-9]+)/(&#91;0-9]+)/*$&quot; =&gt; &quot;./view.php?id=$1&amp;eval=$2&quot;, &quot;view/(&#91;0-9]+)/frame(&#91;0-9]*)/*$&quot; =&gt; &quot;./view.php?id=$1&amp;frame=$2&quot;, &quot;im/(&#91;0-9]+)/*$&quot; =&gt; &quot;./im.php?id=$1&quot;, &quot;^user/(&#91;0-9]+)/*$&quot; =&gt; &quot;/user.php?id=$1&quot; )</pre> но не получаю коректной работи!<br> точней некоректно передаютса get запроси https://visavi.net/topics/41355/671177 mod rewrite в lighttpd VolBog Sun, 28 Sep 2014 02:04:04 +0400 Сообщения https://visavi.net/topics/41355/671177 Ктото сталкивался?<br> Переписую мод реврайт для с apache для lighttpd <br> <br> <pre class="prettyprint"> RewriteRule ^(&#91;0-9]+)/*$ ./index.php?id=$1 &#91;QSA,NC] RewriteRule ^(&#91;0-9]+)/(&#91;0-9]+)/*$ ./index.php?id=$1&amp;page=$2 &#91;QSA,NC] RewriteRule ^onpage/(&#91;0-9]+)/(&#91;0-9]+)/*$ ./index.php?onpage=$1&amp;id=$2 &#91;QSA,NC] RewriteRule ^sort/(&#91;a-z]+)/(&#91;0-9]+)/*$ ./index.php?sort=$1&amp;id=$2 &#91;QSA,NC] RewriteRule ^prew/(&#91;0-9]+)/(&#91;0-9]+)/*$ ./index.php?prew=$1&amp;id=$2 &#91;QSA,NC] RewriteRule ^view/(&#91;0-9]+)/*$ ./view.php?id=$1 &#91;QSA,NC] RewriteRule ^view/(&#91;0-9]+)/frame(&#91;0-9]*)/*$ ./view.php?id=$1&amp;frame=$2 &#91;QSA,NC] RewriteRule ^view/(&#91;0-9]+)/(&#91;0-9]+)/*$ ./view.php?id=$1&amp;eval=$2 &#91;QSA,NC] RewriteRule ^view/(&#91;0-9]+)/abuse/*$ ./view.php?id=$1&amp;abuse=1 &#91;QSA,NC] RewriteRule ^view/(&#91;0-9]+)/email/*$ ./view.php?id=$1&amp;email=1 &#91;QSA,NC] RewriteRule ^ffmpeg/(&#91;0-9]+)/*(&#91;0-9]*)/*$ ./ffmpeg.php?id=$1&amp;frame=$2 &#91;QSA,NC] RewriteRule ^im/(&#91;0-9]+)/*$ ./im.php?id=$1 &#91;QSA,NC] RewriteRule ^theme/(&#91;0-9]+)/*$ ./theme.php?id=$1 &#91;QSA,NC] RewriteRule ^load/(&#91;0-9]+)/*$ ./load.php?id=$1 &#91;QSA,NC] RewriteRule ^user/(&#91;0-9]+)/*$ ./user.php?id=$1 &#91;QSA,NC] RewriteRule ^rate/(&#91;0-9]+)/*$ ./rate.php?i=$1 &#91;QSA,NC] RewriteRule ^cut/(&#91;0-9]+)/*$ ./cut.php?id=$1 &#91;QSA,NC] RewriteRule ^txt_zip/(&#91;0-9]+)/*$ ./txt_zip.php?id=$1 &#91;QSA,NC] RewriteRule ^txt_jar/(&#91;0-9]+)/*$ ./txt_jar.php?id=$1 &#91;QSA,NC] RewriteRule ^jad/(&#91;0-9]+)/*$ ./jad.php?id=$1 &#91;QSA,NC] RewriteRule ^search/(&#91;0-9]+)/(&#91;0-9]+)/(&#91;0-9]+)/(.*)/*$ ./search.php?act=search&amp;page=$1&amp;onpage=$2&amp;prew=$3&amp;word=$4 &#91;QSA,NC] RewriteRule ^top/(&#91;a-z]+)/*(&#91;0-9]*)/*$ ./top.php?sort=$1&amp;page=$2 &#91;QSA,NC] RewriteRule ^zip/(&#91;0-9]+)/*(&#91;0-9]*)/*$ ./zip.php?id=$1&amp;page=$2 &#91;QSA,NC] RewriteRule ^zip/preview/(&#91;0-9]+)/(.+)/(&#91;0-9]*)/*$ ./zip.php?action=preview&amp;id=$1&amp;open=$2&amp;page=$3 &#91;QSA,NC] RewriteRule ^zip/down/(&#91;0-9]+)/(.+)/*$ ./zip.php?action=down&amp;id=$1&amp;open=$2 &#91;QSA,NC] RewriteRule ^komm/(&#91;0-9]+)/*(&#91;0-9]*)/*(add)*/*$ ./komm.php?id=$1&amp;page=$2&amp;act=$3 &#91;QSA,NC] RewriteRule ^news_komm/(&#91;0-9]+)/*(&#91;0-9]*)/*(add)*/*$ ./news_komm.php?id=$1&amp;page=$2&amp;act=$3 &#91;QSA,NC] RewriteRule ^news/(&#91;0-9]+)/*$ ./news.php?page=$1 &#91;QSA,NC] RewriteRule ^read/(&#91;0-9]+)/*(&#91;0-9]*)/*$ ./read.php?id=$1&amp;page=$2 &#91;QSA,NC] </pre> https://visavi.net/topics/41355/671176 mod rewrite в lighttpd VolBog Sun, 28 Sep 2014 02:03:05 +0400 Сообщения https://visavi.net/topics/41355/671176