301 Redirect not working

Discussion in 'LiteSpeed Cache Plugin For WordPress' started by Richard Arnold, Dec 7, 2017.

  1. Richard Arnold

    Richard Arnold New Member

    Hi

    I am trying to get a 301 redirect working for a single page and currently it is not. I am trying to understand if this is because of some interaction with LiteSpeed Cache

    I have tried adding this to the htaccess file
    Code:
    Redirect 301 "/old-page.html" "/new-page.html"
    This didn't work, so I removed this and tried setting a redirect via cpannel. This added the following to htaccess
    Code:
    RewriteCond %{HTTP_HOST} ^d8tadude\.com$ [OR]
    RewriteCond %{HTTP_HOST} ^www\.d8tadude\.com$
    RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
    RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$
    RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
    RewriteRule ^2016\/09\/06\/3par\-simulator\-download$ "https\:\/\/d8tadude\.com\/2017\/12\/05\/3par\-simulator\-setup" [R=301,L]
    In both cases this was unsuccessful. It was added to the end of the htaccess file below any Litespeed entries

    Any ideas?

    Thanks
     
    Last edited by a moderator: Dec 11, 2017 at 2:09 PM
  2. NiteWave

    NiteWave Administrator

    yes, looks still not working
    hoow about move above rules on top of .htaccess ?
     
  3. Tishu

    Tishu Member

    Hello,
    You can try:
    Code:
    Redirect 301 /2016/09/06/3par-simulator-download https://d8tadude.com/2017/12/05/3par-simulator-setup
    or
    Code:
    Redirect 301 /d8tadude.com/2016/09/06/3par-simulator-download https://d8tadude.com/2017/12/05/3par-simulator-setup
     
    Last edited by a moderator: Dec 11, 2017 at 2:08 PM

Share This Page