testing123
testing123

Reputation: 829

Wordpress changed directory url / site broke permalinks and pages

I changed my wordpress url and site url from "blog" to "extras". Now only the home page works. The post permalinks and pages go to a 404 page. Did I miss something in the change? How do I fix it? Thanks. New posts and pages also have the same issue.

I read somewhere that I need to check the .htaccess page but I can't find it. ... Or do I need to update something in the wp_config file?

Upvotes: 0

Views: 67

Answers (1)

Azmat
Azmat

Reputation: 126

You need to search your whole database for a string /blog/ which was your previous directory and replace it with /extras/ which is your new directory. Use this search and replace script https://github.com/interconnectit/Search-Replace-DB/archive/master.zip

Download it and upload everything in your extras directory. Before putting it there rename it's unzipped directory name to snr. It will make easier to access the script. Now open http://example.com/extras/snr and at top put the strings as directed above and click run.

It will search the whole database and where it will find "/blog/" will replace it with "/extras/". Problem solved.

Upvotes: 1

Related Questions