The MU forums have moved to WordPress.org

.htacces problem (1 post)

  1. umair
    Member
    Posted 17 years ago #

    i had asked earlier as wel about the problem of no permission. then i tried to comment my .htaccess file and all worked fine. but i know that this commenting is ot the solution.

    here is my .htaccess file. pls guide me how to change it. my virtual host is "wp"

    [code]
    RewriteEngine On
    RewriteBase /

    # Rewrite http://www.domain.com to domain.com
    RewriteCond %{HTTP_HOST} ^wp\.(.*)
    RewriteRule ^(.*) http://%1/$1 [R,L]

    #uploaded files
    RewriteRule ^(.*)?/?files/(.*) wp-content/blogs.php?file=$2 [L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule . - [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]
    [/code]

    pls help out !!!

About this Topic

  • Started 17 years ago by umair