• My site is stuck redirecting domainname/ to domainname/subpage

    Tried to redirect urlone/ to urltwo/ with regular 301 redirects in .htaccess but didn’t work – then found a script from old post: https://wordpress.org/support/topic/proper-301-redirect-in-htaccess – and edited the urls to my own.

    Site crashed. I restored from just previous backup. Site runs, but will not show frontpage or domainname/

    Made sure the .htaccess file is clean. Tried earlier backups – still stuck.

    Here is the script: ( wanted index-1.html to redirect – now the domainname/ redirects – even with a clean file with just wordpress code.

    RewriteCond %{HTTP_HOST} ^iphone-serviceshop.dk$ [OR]
    RewriteCond %{HTTP_HOST} ^www.iphone-serviceshop.dk$
    RewriteRule ^index-1.html\$ “http\:\/\/www\.iphone-serviceshop\.dk\iphone\/-mobil\/-reparation\/-koebenhavn\/$“ [R=301,L]
    # 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

    Thanks alot for looking into this.

  • The topic ‘Stuck in redirect 301 after htaccess script domainname forwarded’ is closed to new replies.