1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

htaccess rewrite not working properly

Discussion in 'Apache' started by Carlos Henrique, Mar 25, 2014.

  1. #1
    I have 2 domains and a hosting site, and I would like one of the domains to use a different directory than /www/index.html. I would like it to point to /www/so360/index.html, like if it was another website.

    here is my htaccess, which some functions already work.

    
    # Protect files and directories
    <FilesMatch "(\.(engine|inc|info|install|module|profile|po|sh|.*sql|theme|tpl(\.php)? |xtmpl)|code-style\.pl|Entries.*|Repository|Root|Tag|Template)$">
    Order allow,deny
    </FilesMatch>
    # Don’t show directory listings
    Options -Indexes
    Options +FollowSymLinks
    # Basic rewrite rules, stop unneeded PERL bot, block subversion directories
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule ^(.*/)?\.svn/ - [F,L]
    ErrorDocument 403 "Access Forbidden"
    RewriteCond %{HTTP_USER_AGENT} libwww-perl.*
    RewriteRule .* – [F,L]
    # RewriteRule ^www\.so360\.com\.br$ www.astumobilis.com/so360/index.html [R=301,L]
    
    
    </IfModule>
    Code (markup):

     
    Carlos Henrique, Mar 25, 2014 IP