All pastes #139283 Raw Edit

WPG2 .htaccess

public text v1 · immutable
#139283 ·published 2006-08-19 20:19 UTC
rendered paste body
# BEGIN Url Rewrite section
# (Automatically generated.  Do not edit this section)
<IfModule mod_rewrite.c>
    RewriteEngine On

    RewriteBase /Diary/

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d [OR]
    RewriteCond %{REQUEST_FILENAME} gallery\_remote2\.php
    RewriteCond %{REQUEST_FILENAME} !/Diary/wp-gallery2\.php$
    RewriteRule .   -   [L]


      RewriteCond %{QUERY_STRING} view=core.DownloadItem
        RewriteCond %{HTTP_REFERER} !://www.r4e.org/ [NC]
        RewriteCond %{HTTP_REFERER} !^$
      RewriteRule .   /Diary/wp-gallery2.php?   [F,L]

    RewriteCond %{THE_REQUEST} \ /Diary/sitemap(\?.|\ .)
    RewriteCond %{REQUEST_FILENAME} !/Diary/wp-gallery2\.php$
    RewriteRule .   /Diary/wp-gallery2.php?g2_view=sitemap.Sitemap   [QSA,L]

    RewriteCond %{THE_REQUEST} \ /Diary/admin/(\?.|\ .)
    RewriteCond %{REQUEST_FILENAME} !/Diary/wp-gallery2\.php$
    RewriteRule .   /Diary/wp-gallery2.php?g2_view=core.SiteAdmin   [QSA,L]

    RewriteCond %{THE_REQUEST} \ /Diary/map(\?.|\ .)
    RewriteCond %{REQUEST_FILENAME} !/Diary/wp-gallery2\.php$
    RewriteRule .   /Diary/wp-gallery2.php?g2_view=map.ShowMap   [QSA,L]

    RewriteCond %{THE_REQUEST} \ /Diary/c/view/([0-9]+).html(\?.|\ .)
    RewriteCond %{REQUEST_FILENAME} !/Diary/wp-gallery2\.php$
    RewriteRule .   /Diary/wp-gallery2.php?g2_view=comment.ShowAllComments&g2_itemId=%1   [QSA,L]

    RewriteCond %{THE_REQUEST} \ /Diary/c/add/([0-9]+).html(\?.|\ .)
    RewriteCond %{REQUEST_FILENAME} !/Diary/wp-gallery2\.php$
    RewriteRule .   /Diary/wp-gallery2.php?g2_view=comment.AddComment&g2_itemId=%1   [QSA,L]

    RewriteCond %{THE_REQUEST} \ /Diary/srss/([0-9]+)(\?.|\ .)
    RewriteCond %{REQUEST_FILENAME} !/Diary/wp-gallery2\.php$
    RewriteRule .   /Diary/wp-gallery2.php?g2_view=rss.SimpleRender&g2_itemId=%1   [QSA,L]

    RewriteCond %{THE_REQUEST} \ /Diary/rss/([^\/\?]+)(\?.|\ .)
    RewriteCond %{REQUEST_FILENAME} !/Diary/wp-gallery2\.php$
    RewriteRule .   /Diary/wp-gallery2.php?g2_view=rss.Render&g2_name=%1   [QSA,L]

    RewriteCond %{THE_REQUEST} \ /Diary/d/([0-9]+)-([0-9]+)/([^\/\?]+)(\?.|\ .)
    RewriteCond %{REQUEST_FILENAME} !/Diary/wp-gallery2\.php$
    RewriteRule .   /gallery/main.php?g2_view=core.DownloadItem&g2_itemId=%1&g2_serialNumber=%2&g2_fileName=%3   [QSA,L]

    RewriteCond %{THE_REQUEST} \ /Diary/s/([^?]+)/slideshow.html(\?.|\ .)
    RewriteCond %{REQUEST_FILENAME} !/Diary/wp-gallery2\.php$
    RewriteRule .   /Diary/wp-gallery2.php?g2_view=slideshow.Slideshow&g2_path=%1   [QSA,L]

    RewriteCond %{THE_REQUEST} \ /Diary/f/([^?]+)(\?.|\ .)
    RewriteCond %{REQUEST_FILENAME} !/Diary/wp-gallery2\.php$
    RewriteRule .   /Diary/wp-gallery2.php?g2_controller=permalinks.Redirect&g2_filename=%1   [QSA,L]

    RewriteCond %{THE_REQUEST} \ /Diary/v/([^?]+)(\?.|\ .)
    RewriteCond %{REQUEST_FILENAME} !/Diary/wp-gallery2\.php$
    RewriteRule .   /Diary/wp-gallery2.php?g2_view=core.ShowItem&g2_path=%1   [QSA,L]

    RewriteCond %{THE_REQUEST} \ /Diary/([^?]+)(\?.|\ .)
    RewriteCond %{REQUEST_FILENAME} !/Diary/wp-gallery2\.php$
    RewriteRule .   /Diary/wp-gallery2.php?g2_view=rewrite.FileNotFound   [QSA,L]

</IfModule>

# END Url Rewrite section

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /Diary/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /Diary/index.php [L]
</IfModule>

# END WordPress