Viewing 5 replies - 1 through 5 (of 5 total)
  • The line is correct for what you are trying to achieve. Do you have
    RewriteEngine On
    before this line?

    Thread Starter Dumb Domme

    (@dumb-domme)

    Thanks for the response, halty.

    Here’s exactly what I have:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    RewriteRule ^author/d/page(.*)$ https://dumbdomme.com/page$1 [L,R=301]
    </IfModule>

    Did I make a mistake somewhere else that might be affecting the rewrite?

    Thanks for any insight you can provide.

    Best,
    D

    Try:

    RedirectMatch 301 ^/author/d/page/.*$ https://dumbdomme.com/page$1
    
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    </IfModule>

    In this .htaccess this line:
    RewriteRule ^author/d/page(.*)$ https://dumbdomme.com/page$1 [L,R=301]
    will never be executed because of another rule before it.

    Try moving it like so:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^author/d/page(.*)$ https://dumbdomme.com/page$1 [L,R=301]
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    Thread Starter Dumb Domme

    (@dumb-domme)

    Thank you both, Seacoast Web Design and halty.

    halty,

    I moved the line as you suggested and it worked beautifully. In all the reading I did trying to find the answer myself, I never thought to look into the order of things.

    Thank you so much for your time and your help. It’s appreciated. ??

    Best to you,
    D

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Request for help with .htaccess file redirect’ is closed to new replies.