• Downloading from our site will require you to have a paid membership. Upgrade to a Premium Membership from 10$ a month today!

    Dont forget read our Rules! Also anyone caught Sharing this content will be banned. By using this site you are agreeing to our rules so read them. Saying I did not know is simply not an excuse! You have been warned.

Hướng dẫn fix friendly url vbb 4.x.x trên plesk 11

Admin

Well-Known Member
Staff member
Administrator
Do dùng .htaccess trên plesk sẽ không được nên phải dùng cách này
Vào httpdocs, Add New Files tạo file với tên web.config
Rồi lưu lại và cảm nhận
PHP:
<?xml version="1.0" encoding="UTF-8"?>

<configuration>

    <system.webServer>

        <directoryBrowse enabled="true" />

        <rewrite>

            <rules>

  <rule name="vB Threads" enabled="true" >

                    <match url="^threads/([0-9]+)(?:/?$|(?:-[^/]+))(?:/?$|(?:/p([0-9]+)?))" />

  <conditions logicalGrouping="MatchAll">

                  <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />

                  <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />

              </conditions>

                    <action type="Rewrite" url="showthread.php?t={R:1}" />

                </rule>

  <rule name="vB Forums" enabled="true" >

                    <match url="^forums/([0-9]+)(?:/?$|(?:-[^/]+))(?:/?$|(?:/p([0-9]+)?))" />

  <conditions logicalGrouping="MatchAll">

                  <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />

                  <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />

              </conditions>

                    <action type="Rewrite" url="forumdisplay.php?f={R:1}" />

                </rule>

  <rule name="vB Members" enabled="true" >

                    <match url="^members/([0-9]+)" />

  <conditions logicalGrouping="MatchAll">

                  <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />

                  <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />

              </conditions>

                    <action type="Rewrite" url="member.php?u={R:1}" />

                </rule>

  <rule name="vB Blogs" enabled="true" >

                    <match url="^blogs/([0-9]+)(?:/?$|(?:-[^/]+))(?:/?$|(?:/p([0-9]+)?))" />

  <conditions logicalGrouping="MatchAll">

                  <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />

                  <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />

              </conditions>

                    <action type="Rewrite" url="blog.php?u={R:1}" />

                </rule>

                <rule name="vB Blog Entries" enabled="true" >

                    <match url="^entries/([0-9]+)(?:/?$|(?:-[^/]+))(?:/?$|(?:/p([0-9]+)?))" />

  <conditions logicalGrouping="MatchAll">

                  <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />

                  <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />

              </conditions>

                    <action type="Rewrite" url="entry.php?b={R:1}" />

                </rule>

  <rule name="vBCMS" stopProcessing="true" enabled="true" >

                    <match url="^(?:(.*?)(?:/|$))(.*|$)$" />

  <conditions logicalGrouping="MatchAll">

                  <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />

                  <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />

              </conditions>

                    <action type="Rewrite" url="{R:1}.php?r={R:2}" />

                </rule>

            </rules>

        </rewrite>

    </system.webServer>

</configuration>
Xem thêm
[Hướng dẫn] fix friendly url vbb 4.x.x trên plesk 11
 

Facebook Comments

Similar threads

New posts New threads New resources

Back
Top