hlanggo
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Admin Bar is at the bottom and all messed up.Cannot edit starting post so have to make a reply.
The messed up admin bar is no more. I am not sure how it fixed itself. I -think- emptying the minify cache in W3 Total Cache fixed it OR my puttering around W3TC’s CDN settings did the good deed.
Forum: Fixing WordPress
In reply to: Is /%postname%/%post_id% a safe permalink structureI would like to ask for more clarification on this issue, because right now (https://codex.www.ads-software.com/Using_Permalinks) says using or starting with /%postname%/ causes performance issues.
Starting Permalinks with %postname% is strongly not recommended for performance reasons.
This matter is really very confusing (and very worryisome) because starting with %category%, %tag% and %author% is now also discouraged even though early on in the guide, it says:
There are many different formats, but the most common, and most versatile looks like
And near the end, it says:
If you want to list your site in Google News, one of the requirements is to have at least three digit identifier at the end of every url.
This is easily accomplished using %postname%-%post_id% structure, which will append post ID to the end of URL so it becomes https://example.com/cooking-tips-tricks-344.
Forum: Networking WordPress
In reply to: How to remove WWW for multisite install?Just an update.
To solve the no-www to yes-www problem, I decided to redo the multisite installation. Did so about 2 weeks ago, but I forgot to mention about it here.
Doing (below):
1. Edit wp-config.php to ADD the www to the domain.
2. Edit database to change all “domain.com” to “www.domain.com”.-did not work.
Forum: Networking WordPress
In reply to: How to remove WWW for multisite install?I got the dreaded never-ending redirect error.
Forum: Networking WordPress
In reply to: How to remove WWW for multisite install?Is (below) correct?
To ADD www to a multisite (because I completely forgot the www during installation); sighs):
1. Edit wp-config.php to ADD the www to the domain.
2. Edit database to change all “domain.com” to “www.domain.com”.
3. Nothing else?—
Can you detail out what you mean by:
it’s a precaution though, as you’ll have to redirect the non-www to the root.
? Unfortunately, I have to stay with www for a website which has been using www for a long long time.
What extra precautions do I have to take for a www multisite?
Forum: Networking WordPress
In reply to: Issue with upload files pathThank you again. ?? I’ll do that when I get to work tomorrow.
Forum: Networking WordPress
In reply to: Issue with upload files pathThank you! It worked when I repositioned it as you suggested.
Below are the current wordpress rules in my .htaccess:
# BEGIN WordPress RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] # Moved Images RewriteRule ^lovecoconuts/lcstuff/(.*)$ https://in-cebu.net/lovecoconuts/files/$1 [L,R=301] # uploaded files RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L] # add a trailing slash to /wp-admin RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L] RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^ - [L] RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L] RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L] RewriteRule . index.php [L] # END WordPress
Again, thank you very much!
Forum: Networking WordPress
In reply to: Issue with upload files pathBump.
No solution for this?
Forum: Networking WordPress
In reply to: Issue with upload files pathStill no go. =(
https://in-cebu.net/lovecoconuts/lcstuff/prettymap-airporttolgh.png (old image url, now a 404)
-will not redirect to any of the following working image urls-
https://in-cebu.net/lovecoconuts-console/lcstuff/prettymap-airporttolgh.png
# Moved Images RewriteRule ^lovecoconuts/lcstuff/(.*)$ https://in-cebu.net/lovecoconuts-console/lcstuff/$1 [L,R=301]
or
https://in-cebu.net/lovecoconuts/files/prettymap-airporttolgh.png (preferred image url to redirect to)# Moved Images RewriteRule ^lovecoconuts/lcstuff/(.*)$ https://in-cebu.net/lovecoconuts/files/$1 [L,R=301]
or
https://in-cebu.net/lovecoconuts/wp-content/blogs.dir/4/files/prettymap-airporttolgh.png# Moved Images RewriteRule ^lovecoconuts/lcstuff/(.*)$ https://in-cebu.net/wp-content/blogs.dir/4/files/$1 [L,R=301]
or
https://in-cebu.net/lovecoconuts/wp-content/blogs.dir/4/lcstuff/prettymap-airporttolgh.png# Moved Images RewriteRule ^lovecoconuts/lcstuff/(.*)$ https://in-cebu.net/wp-content/blogs.dir/4/lcstuff/$1 [L,R=301]
Forum: Networking WordPress
In reply to: Issue with upload files pathI am having a hard time seeing how changing the urls in the (old?) database will help. Can you please explain this method further?
I tried your suggestion – it didn’t work.
Old image urls:
https://in-cebu.net/lovecoconuts/lcstuff/prettymap-airporttolgh.png (now a 404)
(not wp-content/uploads, it’s a folder outside of wp-content)
Old lovecoconuts website is now lovecoconuts-console:
https://in-cebu.net/lovecoconuts-console/lcstuff/
Below is the bit of code I added to .htaccess:
# Moved Images RewriteRule ^lovecoconuts/lcstuff/(.*)$ https://in-cebu.net/lovecoconuts/files/$1 [L,R=301]
I also tried:
# Moved Images RewriteRule ^lovecoconuts/lcstuff/(.*)$ https://in-cebu.net/wp-content/blogs.dir/4/files/$1 [L,R=301]
Neither works. The old image urls are still 404s.
Forum: Networking WordPress
In reply to: Issue with upload files pathMy test site:
https://in-cebu.net/lovecoconuts/
This is now on multisite. In order for it to work, I had to rename the original lovecoconuts directory (to something else).
Since the old directory was renamed, the old uploads folder can no longer be accessed via the old image urls.
I have tried adding a copy of the old uploads folder to blogs.dir/#/ but it doesn’t work. Is there a code I can add (somewhere) which will direct old image urls to the new urls?
Forum: Networking WordPress
In reply to: Issue with upload files pathSeconding Miguel’s request.
I’m interested in consolidating my wordpress sites under one install, but the inability to change /files is worrisome.
Two of my sites have many pictures which have been linked to. The change from wp-content/uploads to /files = 404’s galore.
Forum: Plugins
In reply to: Cleaner Gallery appears to break Lightbox, Thickbox, etc.Found a fix for Cleaner Gallery plus Lightbox 2 (https://www.ads-software.com/extend/plugins/lightbox-2/).
Go to Clean Gallery Settings (under Appearance in WordPress Backend).
Under Gallery Settings, make sure that Image Link is not link to “Attachment Page”.
I’ve only checked with Lightbox 2, but it probably will work with the others.