• Hey Guys,

    Hoping someone can help as i’ve got a rather odd issue.

    I have two wordpress blogs running in a single host. One on the base level, the second in a sub-folder.

    Now essentially the two wordpress blogs are running off the .htaccess file on the base folder.

    So basically:

    / – blog one
    /.htaccess – htaccess for both blogs
    /central/ – blog two

    The issue i’m having is that i’m attempting to install a form mailer however i can seem to exclude the cgi-bin folder at

    /central/cgi-bin/

    From the redirect. The coding in the htaccess is as follows:

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

    # END WordPress

Viewing 1 replies (of 1 total)
  • Read carefully and replace 3 areas.Keep copy of original .htaccess file,in case this won’t work for you.
    After necessary 3 changes upload as htaccess.txt and then rename by right click to .htaccess (don’t forget the dot at the beginning and no dot at the end)Wait 10 minutes aand exit FTP Clear your browser cache and if your site is loaded click CTRL and F5[function key may need to be on with some keyboards]

    ## DISABLE HOTLINKING
    RewriteEngine on
    # Options +FollowSymlinks
    RewriteCond %{HTTP_REFERER} !^$
    RewriteCond %{HTTP_REFERER} !^https://(www\.)?yourblogdomainname.com/.*$ [NC]
    RewriteRule \.(gif|jpg|jpeg|png|js|css)$ – [F]

    # Link Cloaker Plugin BEGIN
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule link/([^/]*)/([0-9]+)/([0-9]+)/? https://your blogdomainname.com/wp-content/plugins/link-cloaking-plugin/wplc_redirector.php?post_id=$2&link_num=$3&cloaked_url=$0 [L]
    RewriteRule link/([^/]+)[/]? https://yourmaindirectorynameof blog1.com/wp-content/plugins/link-cloaking-plugin/wplc_redirector.php?name=$1&cloaked_url=$0 [L]
    </IfModule>
    # Link Cloaker Plugin ENDS

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

Viewing 1 replies (of 1 total)
  • The topic ‘HTACCESS HELP’ is closed to new replies.