autotutorial
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Featured images not showing after SSL and https transferreally it is an absolute local path and not remote ..
Original bad path:
https://www.combifishing.co.uk/home/
To:
/home/
backup your files and database before doing anything.Result:
/home/whizzerp/public_html/www.combifishing.co.uk/if this is the old local path (the old domain), you need to make another substitution from the result to your new domain (local or remote).
remote file start with protocol (http:// o https://)
while all RSS feeds work with a remote path.You have /combifishing/wp-content/ ? else the solution of @sterndata is better.
- This reply was modified 6 years, 5 months ago by autotutorial.
- This reply was modified 6 years, 5 months ago by autotutorial. Reason: Ti
Forum: Fixing WordPress
In reply to: URL redirects to doubled version$_SERVER['DOCUMENT_ROOT'] = '/www/home/user/public_html';
I specified the root of the document to be as exhaustive as possible.
You need to enable the rewrite engine and add the path to where your htaccess file resides.Good for root /www/home/user/public_html:
# BEGIN WordPress RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] # END WordPressRewriteBase is for root /
You must copy your index.php file into root folder and edit
Original:
require( dirname( __FILE__ ) . '/wp-blog-header.php' );
/www/home/user/public_html:
require( dirname( __FILE__ ) . '/new_path/wp-blog-header.php' );
Now it /www/home/user/public_html/new_path
If you use subfolder for WordPress.Forum: Developing with WordPress
In reply to: ajax return value#is selector for id
https://api.jquery.com/jquery.ajax/
url: for url send data
method: POST or GET.After sending the data you can retrieve the value selected by the option via jquery or save the data in the database to remember this setting.
Forum: Fixing WordPress
In reply to: Sitemap Not Workingyes, I think a plugin other than yoast Seo adds html markup to everything.
Example of xml and declaratiion, well formed.
<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="//yourdomain/wp-content/plugins/wordpress-seo/css/main-sitemap.xsl"?> <sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> <sitemap> <loc>https://yourdomain/post-sitemap.xml</loc> </sitemap> <sitemap> <loc>https://yourdomain/page-sitemap.xml</loc> <lastmod>2019-12-09T12:38:39+00:00</lastmod> </sitemap> <sitemap> <loc>https://yourdomain/oceanwp_library-sitemap.xml</loc> <lastmod>2019-11-19T09:31:26+00:00</lastmod> </sitemap> <sitemap> <loc>https://yourdomain/ocean_portfolio-sitemap.xml</loc> </sitemap> <sitemap> <loc>https://yourdomain/author-sitemap.xml</loc> <lastmod>2019-12-08T18:23:28+00:00</lastmod> </sitemap> </sitemapindex> <!-- XML Sitemap generated by Yoast SEO -->Forum: Fixing WordPress
In reply to: question about Permalinkhttps://wordpress.org/plugins/redirection/
Expression olfd_path to new path.To catch the error your server needs to enable errors, consult your manual this is an example when php was installed via apache module, now it is set via php.ini and obviously the syntax changes a bit but those are the variables necessary.
# enable PHP error logging php_flag log_errors on php_value error_log /home/path/public_html/domain/PHP_errors.log# supress php errors php_flag display_startup_errors off php_flag display_errors off php_flag html_errors offhttps://perishablepress.com/how-to-enable-php-error-logging-via-htaccess/
In your wp-config.php write this syntax.
define('WP_DEBUG',true); define('WP_DEBUG_DISPLAY',false); define('WP_DEBUG_LOG',true); // If error is true, it create wp-content/debug.log fileDebug JavaScript , CSS and other https://developers.google.com/web/tools/chrome-devtools.
any url changes between before and after can interrupt the work of the json file. When you go to wp-admin you have https://yourdomain.com/ and the post is created on https://yourdomain.com/ ?
otherwise learn to use developer tools.
https://developers.google.com/web/tools/chrome-devtoolsForum: Fixing WordPress
In reply to: Permalink brokenYou currently have two problems. 1) Each non-existent path is transformed into a query string (either a page or other) 2) Currently the browser (without Chrome private mode) cache makes a redirect to the homepage on any article. If you create a redirect loop in the htaccess file, do you get stuck?
Redirect 301 / http://yourdomain.com/http://www.cabinet-hypnose-la-rochelle.fr/fantastic_url/ does not generate an error 404 instead turns it into a query string, do you use plugins to handle 404 errors?
Forum: Fixing WordPress
In reply to: Changing Permalink StructureI updated the topic, I wrote you something important.
Forum: Fixing WordPress
In reply to: Changing Permalink Structurehere are the terms to remember.
Default: "Ugly"http://example.com/?p=2
PATHINFO: "Almost Pretty"
http://example.com/index.php/yyyy/mm/dd/post-name/
mod_rewrite: "Pretty Permalinks"http://example.com/yyyy/mm/dd/post-name/to use a structure without the date, you have to choose custom size.
Permalink https://wordpress.org/support/article/using-permalinks/
Ningx https://nginxlibrary.com/wordpress-permalinks/the old path is not forwarded to the new one, you have to use a plugin for this.
Note: you cannot use a new route for many date paths or otherwise you will be penalized for the seo, you can an old route in a new one instead.
Forum: Fixing WordPress
In reply to: Permalink brokenuse chrome’s private mode without changing the page, your permalink is this http://www.cabinet-hypnose-la-rochelle.fr/arret-tabac-la-rochelle/ ?
http://www.cabinet-hypnose-la-rochelle.fr/wp-admin/post.php?post=27&action=editwhen you pass the mouse it shows you the permalink for that page
I can’t see the page even with page_id=27 (my browser redirect your homepage) if I have cached the browser, so I recommend the private mode of the chrome browser.
in cpanel or plugin are you writing old url in new url? Is your Nginx server under the apache server?Forum: Fixing WordPress
In reply to: Permalink brokencan you create a test environment, copying the file and database, then with one plugin (search and replace) search old domain and replace with new domaim, do you also have permalink problems on the test site? if you disable all siteorigin plugins (even widgets) the problem disappears?
Forum: Fixing WordPress
In reply to: Why is this not flagged as a bug?@amypopcontent there may be a server side problem: mod_security, you are entering a larger file, you are using plugins or themes that are not compatible with WordPress 5.3. I think of it this way. can you please indicate your mistake?
https://wordpress.org/support/topic/unable-to-upload-images-67/ (the third message author @azaozz )
before uploading files you must be sure not to receive errors due to incompatible plugins or theme. All core files are present, wordpress files have the correct owner and permissions.
Enable Debug in your wp-config.phpdefine('WP_DEBUG',true); define('WP_DEBUG_LOG',true); //If error is true, it create wp-content/debug.logafter the test remove the code and the generated debug.log file.
Forum: Fixing WordPress
In reply to: Sitemap Not Workinghttps://en.wikipedia.org/wiki/Well-formed_document
You can’t mix html markup with xml, you need to find which plugin adds html markup to an xml file.
means an xml file must not start with html markup and optionally can have an xml declaration on the first line.Forum: Fixing WordPress
In reply to: .htaccess and redirecting WP to subfolderYou have to configure the rewrite of the url, WordPress url indicates where they physically redo expose the wordpress files while Siteurl is the url shown to the browser. you have two choices: Insert an htaccess rule in the root and rewrite the url for the site in the subfolder or change your Siteurl (for WordPress subdirectory) without final slash from the wordpress panel and edit the index.php (WordPress root) file to point to the file with subfolder (ie at the second wordpress installation) with this second method only the path that does not correspond to a directory or a regular file makes a redirect via htaccess to index.php.