• rajendrapopuri05

    (@rajendrapopuri05)


    Hi,
    I am getting 301 response when I accessing the wordpress URL with curl command on the command line. My .htaccess file is as below.

    # 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
    =======================
    curl -l https://<hostname&gt;:8180/wordpress
    <!DOCTYPE HTML PUBLIC “-//IETF//DTD HTML 2.0//EN”>
    <html><head>
    <title>301 Moved Permanently</title>
    </head><body>
    <h1>Moved Permanently</h1>
    <p>The document has moved :https://<hostname&gt;:<port>/wordpress/”>here.</p>
    </body></html>

    Please advise, how to fix this issue.

    Thanks,
    Rajendra

Viewing 1 replies (of 1 total)
  • undiscoveredhouse

    (@undiscoveredhouse)

    Seems like you’re using HTTPS for your website, am I right?

    Try doing the curl command again, but this time with the HTTPS URL of your website. See if there’re any issues

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