• I have installed my WP blog in directory xxxxx.com/vince/, in this directory I have a .htaccess file like below.

    Is this (xxxxx.com/vince/) the right place to put this .htaccess file or do I need to put in the root?

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

    Also if I want to combine CSS and Java (with already have combine.php).

    RewriteRule ^css/(.*\.css) /combine.php?type=css&files=$1
    RewriteRule ^javascript/(.*\.js) /combine.php?type=javascript&files=$1

    Can I just wright the above in the same .htaccess between # BEGIN WordPress and # END WordPress or below the # END WordPress or do I have to do this in the root .htaccess??

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘.htaccess where ? in Root or Directory’ is closed to new replies.