wp search-replace (not executing)
Have a look at your PHP errors. I’ve seen WP CLI fail like that because PHP fatals out.
Have a look at your PHP errors. I’ve seen WP CLI fail like that because PHP fatals out.
You can’t “redirect” to the external site in .htaccess – there is no way for your script to do the “MITM” bit to check their credentials. Instead, you would need to internally rewrite the request to your PHP script (in .htaccess). Your PHP script then checks that the user is logged in, etc. as you … Read more
Did you check the two URLs in the wp_options table? That’s where WP gets the base URL for a site. If you moved the site database from staging to live, you may have forgotten to change those values in the wp_options table.
I”m not sure if this is the “best” way to approach it but this is what I would try first. I would create a taxonomy (like categories) called languages. Maybe even use categories (if they are not in use for something else). You can structure permalinks to go example.com/<cat-name>/<page-stub> and, thus, have the language as … Read more
Changing the search url according to language
If you have simple data, you can use add_option function to save the data to the wp_options database table. You can pass an array, it will be serialized automatically. Just pass the array to the function in the second argument, and specify the option name in the first argument (something like all_visits). And then you … Read more
Yes you can do this with a custom rewrite. I am doing the same for a custom post type, in my case profile. So my URL = domain.com/profile/some-custom-slug. Dynamically I create /meet-me behind it, so it becomes domain.com/profile/some-custom-slug/meet-me. The real address of the contact page is domain.com/profile/some-custom-slug/?meet=true (or something else unique). function wpse343933_todo() { add_rewrite_rule( … Read more
You can edit the slug for most content types. Check your sidebar when you have it open for editing – it should look something like this: Moreover, some SEO plugins (like Yoast) also allow you to specify a slug. If you change the slug (and thus the URL to pages) you might want to use … Read more
You just create a folder called videos/and any subfolders/ inside your cpanel public_html directory then move the video from from the wordpress upload folder to the newly created videos folder or any sub directory you want to put it inside the videos folder. and thats it
Have you checked your wp_options table under the column “site_url”. The Colon can be missing in database table.