简体   繁体   中英

Wordpress - domain name continually repeats in url

I had a successfully working Wordpress website at nicholasolsen.ca and I was trying to change a url through the htaccess but wasn't working so I reset my permalinks to 'plain path' and it all broke so I put them back to 'post name' and then it did what it's doing now.

nicholasolsen.ca/nicholasolsen.ca/nicholasolsen.ca/nicholasolsen.ca/nicholasolsen.ca/nicholasolsen.ca/nicholasolsen.ca/ ...

I set the htaccess back to standard original and its still broken.

# 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

I am no expert on Wordpress, but I think somewhere, the index file is redirecting to ./nicholasolsen.ca, and it redirects to ./nicholasolsen.ca/nicholasolsen.ca and so on. A redirect is missing an HTTP://, possibly? It thinks the website name is a folder/file on the website. BTW, on my phone, the website shows up fine...

I hope you can fix it. If all else fails, restore the files to a new wordpress installation.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM