• I don’t think it’s relevant but I’m using the Babylog theme.

    I’m trying to redirect a certain ip from one page to another page. This is just an obnoxious user – but I don’t want to deny them total access to my site, just a redirect from that one particular page.

    Anyway I thought I could do this via .htaccess but it isn’t working. Here is ALL the code in my .htaccess file:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress
    
    RewriteEngine On
    RewriteCond %{REMOTE_ADDR} ^69\.82\.85\.525
    RewriteRule ^https://this-is-the-page-redirected-from$ \https://this_is_the_page_redirected_to[R,NC,L]

    Now I’ve dickered around with several things…

    I’ve taken out the [L] that ends the WordPress section. I’ve removed the ReWriteEngine On from the lower section of code. But nothing I’ve done has gotten this thing to work.

    I’m hoping that it’s just something small. I was wondering if maybe the wordpress code was preventing the lower code.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘redirecting ip not working in htaccess’ is closed to new replies.