• Hi there kind experts,

    I’m currently migrating my WP site to a SSD hosting (on my usual web host), offering a higher version of PHP & MySql. The files have been copied and now, have I to test if everything is nice and tidy before publishing from the new SSD platform.

    Through a new FTP account, I updated new names for the Data Base and son on, according to the hosts’s migration guide. When I clik on “test site”, the home pages displays OK through the previsualisation URL.
    The issue is that when I test the other pages, they are redirected to the “former” version of the site from the “normal” database.

    The host support gents tell me I have a redirection that is preventing me from correctly testing the site, and that I have to switch this redirection off for the testing time .

    I remember having redirected the home page of a former version of the magazine (made with iWeb) to the new home page made with WP. Alas, I’ve done this five years ago and I don’t remembrer what I wrote in the .htaccess file at that time…

    Here is what the .htaccess shows:

    Redirect permanent /yesicannes/home.html https://yesicannes.com
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # 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

    Would somemone please be kind enough to tell what lines must I erase to switch the redirection off?

    Many thanks in advance for your help!

    Best

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Your redirect is done on the first line.
    Then you have two identical blocks that do the standard WordPress permalinks processing, you only need one of these, so keep a copy of the original file, and replace its contents with:

    # 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
    Thread Starter YesICannes

    (@yesicannes)

    Hi RossMitchell,

    Many thanks for your kind answer!

    Best

    Thread Starter YesICannes

    (@yesicannes)

    Hi RossMitchell,

    I modified the .htaccess file after your indications, but nothing changed, the pages keep being redirected to the “normal” pages from the “former” database…

    Would you have any idea of what is wrong?

    Best

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Help needed for switching a 301 redirection off’ is closed to new replies.