Htaccess question...

Discussion in 'HTML & Website Design' started by sandrodz, Jul 12, 2007.

  1. #1
    Hi, any apache masters here :) please let me know if this is optimized. I'm particularly interested if I can have 2 RewriteEngine On bits, or maybe both can go under one roof? which way is better? please let me know if there is better way of having modrewritten urls and also make non www -> www.


    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{HTTP_HOST} !www.sandrophoto.com
    RewriteRule ^.*$ http://www.sandrophoto.com%{REQUEST_URI} [R,L]

    RewriteEngine On
    RewriteBase /blog/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /blog/index.php [L]
    </IfModule>

    # END WordPress
     
    sandrodz, Jul 12, 2007 IP
  2. sandrodz

    sandrodz Peon

    Messages:
    1,482
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    0
    #2
    sorry for bumping the thread :( but I really need to know. thanks!
     
    sandrodz, Jul 12, 2007 IP