[Hidden-tech] Advice re changing URL of a Wordpress site?

Jeff Brand jeff at deltafactory.com
Fri Oct 20 10:07:15 EDT 2017


You're definitely on the right track by changing the Site URL and Home URL.

If it's a multisite you'll need to change some other entries. In any 
case, you'll also need to find/replace all occurrences of the path in 
content (embedded images, for example.) You may also be on the right 
track about .htaccess, depending on where and how the RewriteBase is 
defined.

If you have access to WP-CLI, the `wp search-replace` command is 
powerful and more complete than any third-party plugin I've used. It 
includes a dry-run feature to preview changes. In any case, backup your 
database before changing anything further.

Also take into consideration plugins that you may be using for SEO or 
redirection purposes. They may be inserting themselves into the process, 
thinking they're trying to help.

At this point, it sounds like it's time to fire up phpMyAdmin or a 
similar database tool and look for lingering instances of the old URL.

Best of luck,
  - Jeff

On 10/19/2017 10:33 AM, Gordon Kramer wrote:
> Hello,
>
>
>
> I'm hoping this will be a simple question for someone who really 
> understands how Wordpress sites are set up! I have a Wordpress site 
> set up in a subfolder of my personal website: 
> http://my_website.com/wp_folder
>
> After the site was up and running, I got a domain name for it, set up 
> the nameservers to point to my hosting account, and in the hosting 
> account created the add-on domain so the domain name points to the 
> subfolder. That all works fine - you put the domain name in your 
> browser, it goes to the site's home page. BUT: When you select a page 
> in the site's menu, it redirects to the page in 
> http://my_website.com/wp_folder/, rather than in the new domain. I've 
> tried fixing this in the WP admin General section (Site Address and 
> Wordpress Address), but keep running into problems: On the site I get 
> error messages that 'the page isn't redirecting properly', or I can't 
> load the WP Admin at all, etc. I'm wondering if what's really needed 
> is to modify the .htaccess in the Wordpress folder, but am not sure of 
> what to do. I've tried to read up on this subject, but the info I find 
> is complex and often contradictory... so am hoping someone familiar 
> with this can cut through the complexity!
>
> As a fringe benefit, it would be nice if the WP admin would load at 
> the new domain's URL rather than my personal site's URL - but that's 
> secondary and I could easily let that go.
>
> Any help is very appreciated!
>
> Regards,
>    Gordon Kramer
>
>
>
>
> _______________________________________________
> Hidden-discuss mailing list - home page: http://www.hidden-tech.net
> Hidden-discuss at lists.hidden-tech.net
>
> You are receiving this because you are on the Hidden-Tech Discussion list.
> If you would like to change your list preferences, Go to the Members
> page on the Hidden Tech Web site.
> http://www.hidden-tech.net/members

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.hidden-tech.net/pipermail/hidden-discuss/attachments/20171020/3c205d3e/attachment.html 


Google

More information about the Hidden-discuss mailing list