LachlanM
Forum Replies Created
-
Forum: Networking WordPress
In reply to: Merging Blogs and 301 RedirectI’ve solved the issue.
It may have had something to do with the fact I’m using cPanel/WHM to manage my server. The scenario is as follows, I wanted to redirect a subdomain to another subdomain, including all pages within that subdomain to the new subdomain.I don’t fully understand how WP multisite manages the subdomains virtually without actually creating a directory for each subdomain on the server. However, to get a subdomain redirect working i ended up creating the subdomain again via cPanel, then placing an .htaccess into that subdirectory with the following code:
Options +FollowSymLinks RewriteEngine on RewriteRule (.*) https://your-domain.com/$1 [R=301,L]
Which achieved the required result of redirecting this
https://fishrecipes.mydailyrecipe.com/
to https://tinykitchen.mydailyrecipe.com/
along with all blog posts in the subdomain to the new subdomain.
If anyone is wondering, to move the content I simply exported the posts and categories and imported them to the other blog before deleting the site in WPmultisite admin and then creating the subdomain in cPanel.
Cheers.Forum: Networking WordPress
In reply to: Merging Blogs and 301 RedirectHe Mika,
Thanks for the reply. I’ve been looking into this but am still having trouble.
It seems you can only redirect a subdomain by putting a separate .htaccess file into the directory for that subdomain – you can’t do it with the .htaccess for the root domain.
However, with WP Multisite sites there is no directory for each subdomain.
Does anyone have any thoughts on how this could be accomplished?
Thanks,
Lachlan
Forum: Fixing WordPress
In reply to: How do I get rid of this monster avatar?Nice avatar ??
Forum: Fixing WordPress
In reply to: How do I get rid of this monster avatar?Are you using the same email address you used for this forum? If not you can add the email address to Gravatar. Make sure the image is assigned to the correct email address.
Forum: Fixing WordPress
In reply to: Need expert helpHi,
This tip is free and may help you.
IF THIS IS AN IN-PAGE SCRIPT, e.g. ADVERT
Your theme may have a home.php, if it does you can add your javascript directly to this and it will only affect the home page.
If it doesn’t have a home.php you can add your script to index.php in the following way and it will only appear on the home page:<?php if ( is_home() ) { ?> YOUR SCRIPT HERE <?php } ?>
IF THIS IS A SCRIPT THAT NEEDS TO GO IN THE HEADER
Edit header.php and place the script before the closing head tag using the same code above, which will cause it to only load in the header when the user is on your home page.I usually edit my site files on my PC and then upload via FTP, but you can also do this directly in the WP admin area.
Navigate to Appearance > Editor and select the header.php, home.php or the index.php depending on the above info.Hope this helps.
Forum: Fixing WordPress
In reply to: Reinstating default sidebar settings to be able to add widgetsIf you know what theme you are using, open up the archive of the original, find sidebar.php and open this in an editor, notepad will do.
If you have not made any other modifications to your sidebar file that you are worried about losign then just copy all the contents of sidebar.php from your original install archive.
Browse to Appearance > editor in your WP admin. A list of theme files should display down left, click sidebar.php and paste in the code from your original.
If you have made modifications you wish to keep you will need to identify the code that needs to be replaced and only paste that in.
Hope that helps.
Forum: Fixing WordPress
In reply to: How do I get rid of this monster avatar?PS: The most common place you will see your Gravatar is when you leave a comment on an enabled blog.
Gravatar = Cool.
Forum: Fixing WordPress
In reply to: How do I get rid of this monster avatar?Create an account at https://gravatar.com/ with the same email address you used to register here. Upload a profile image to Gravatar. Your Pic will then show on any Gravatar enabled sites on the web, including this one.
Forum: Fixing WordPress
In reply to: permalinks not working after upgrade to 3.1. and 3.1.1Are you running a caching plugin, like WP Super Cache or W3 Total Cache? This could cause issues.
I should note that those caching plugins are awesome, and would not likely be at fault themselves, however they also need some additional things added to .htaccess to run properly, and if you have a caching plugin installed and have removed your original .htaccess then this could cause an issue.
Forum: Plugins
In reply to: [Plugin: Akismet] Akismet inserts hidden textJonathan.
I pasted the wrong validator link – it was the same one in my first post… sorry.
https://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fi.padaccessories.info%2Fipad-self-portrait-by-jonathan-vazquez%2FThe first error does mention Akismet.
However I take your point about nofollow being added, etc. Thanks.
Forum: Plugins
In reply to: [Plugin: Akismet] Akismet inserts hidden textHi Joseph,
Thx for your reply. I apologise if all this seems pedantic, and I should clarify that I am only concerned because I am trying to troubleshoot a Google penalty for another site. I usually don’t see an issue with such small things, but in this instance, with my desire to get to the bottom of Google’s behavior, I have vowed that no stone shall remain unturned.
You are correct about the validation, I must have accidentally checked as XHTML 1.0 Transitional. I went straight from Web Developer tool bar in FF…
However, Google is quite clear about hidden text and links, and the below would appear to potentially still be in violation (who knows with Google…):
<a rel="nofollow" id="cancel-comment-reply-link" href="/pianolesson-nine-the-diminished-chord/#respond" style="display:none;">Cancel reply</a>
Here is a page with comments from a site based on the popular Motion theme:
https://i.padaccessories.info/ipad-self-portrait-by-jonathan-vazquez/
This has the exact same markup generated as in my Mother’s site. However, the theme developer has built it as XHTML 1.0 Transitional, so in this instance the same output does not validate:
https://validator.w3.org/check?uri=http%3A%2F%2Fpianolessons.forbeginners.me%2Fpianolesson-nine-the-diminished-chord%2F&charset=%28detect+automatically%29&doctype=XHTML+1.0+Transitional&group=0&verbose=1&user-agent=W3C_Validator%2F1.2It seems to me that Akismet is generating invalid HTML if it is used on an XHTML 1.0 Transitional theme?
Forum: Plugins
In reply to: [Plugin: Akismet] Akismet inserts hidden textThanks Joseph,
I’m noticing this on many sites, with a variety of themes.
Here are the Google guidelines:
https://www.google.com/support/webmasters/bin/answer.py?answer=66353
They do penalize for this in many instances.Here is a post on my Mother’s piano lessons blog, which is using the default WP theme, Twenty Ten:
https://pianolessons.forbeginners.me/pianolesson-nine-the-diminished-chord/There is an entire H3 hidden as follows:
<h3 id="reply-title">Leave a Reply <small><a rel="nofollow" id="cancel-comment-reply-link" href="/pianolesson-nine-the-diminished-chord/#respond" style="display:none;">Cancel reply</a></small></h3>
As well as:
<p style="display: none;"><input type="hidden" id="akismet_comment_nonce" name="akismet_comment_nonce" value="455fb56600" /></p>
Forum: Fixing WordPress
In reply to: HTML tag showing at the top of posts?? Happy Easter, Kathy
Forum: Fixing WordPress
In reply to: HTML tag showing at the top of postsAs alchymyth, try deactivating all plugins.
You can deactivate all at once, test and see if problem is resolved – if it is turn them on one at a time and test each time to see when problem occurs.
If you turn off all plugins and the problem is still present, we’ll have to go back to the drawing board.
Forum: Fixing WordPress
In reply to: HTML tag showing at the top of postsnote: the correct way for this to display would be:
<p><h1>tester</h1> <a href="https://danthegardener.com/SunforceSolarPanel" style="font-weight:bold;text-decoration:underline;" target="_blank" rel="nofollow" onmouseover="self.status='https://danthegardener.com/SunforceSolarPanel';return true;" onmouseout="self.status=''"></a>
Hope that helps – you can hopefully see that it is just that the < and the h1> are split.