-
AuthorPosts
-
October 29, 2014 at 7:37 pm #342935
Don’t know if I am in the right place for this one.
But for WordPress lovers you may have an answer. I have the plugin Simple 301 Redirect in place.
And I am pulling links such as the below:
la-appraisal.com/wp-content/themes/enfold/framework/and trying to redirect to the homepage.
It doesn’t work. Google is indexing all these random pages based on Enfolds framework.Any suggestions?
Thanks!
October 31, 2014 at 6:35 am #343877Hey Justin!
Thank you for using Enfold.
Please add this on top of the .htaccess file:
RedirectMatch 301 ^/wp-content/$ http://la-appraisal.com RedirectMatch 301 ^/wp-content/dir/$ http://la-appraisal.com
Create a backup of the file first, just in case.
Best regards,
IsmaelOctober 31, 2014 at 3:55 pm #344073This reply has been marked as private.November 1, 2014 at 2:24 am #344434Hey!
It should go at the very top of the file. In case you get an error. Backup the old .htaccess file on your local machine and upload it to resolve the error and get back to us.
Regards,
ArvishNovember 3, 2014 at 6:53 pm #345445This reply has been marked as private.November 5, 2014 at 2:29 am #346314Hey!
the links on https://www.google.com/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=site:la-appraisal.com/&start=60 are working for me. Could you fix it?
Regards,
AndyNovember 5, 2014 at 4:27 am #346335This reply has been marked as private.November 6, 2014 at 3:38 am #346940Hey!
Thank you for the update. Did you place your WP directory on a different folder? I tested the redirect 301 rule on my installation and it works well.
Cheers!
IsmaelNovember 6, 2014 at 4:22 am #346955This reply has been marked as private.November 8, 2014 at 2:52 am #348040Hi!
No, my question is, did you place your WordPress installation on a different folder inside the root folder? What is the name of the folder?
Regards,
IsmaelNovember 8, 2014 at 3:49 pm #348162This reply has been marked as private.November 10, 2014 at 2:50 am #348630Hi!
Yes, thank you. I wonder why the redirect code is not working. On my installation, it works fine. Please replace the code with this:
RedirectMatch 301 ^/wp-content/$ la-appraisal.com/ RedirectMatch 301 ^/wp-content/dir/$ la-appraisal.com/
If it doesn’t work, you may need to find a plugin or hire a freelance developer to configure the redirection for you.
Regards,
IsmaelNovember 10, 2014 at 7:57 pm #348988This reply has been marked as private.November 12, 2014 at 7:57 pm #350289Hi!
Which plugin are you using? Please remove all of them because they tend to manipulate the .htaccess file on the go. Maybe, that’s why the code isn’t working. Have you tried the suggested code above without the plugins?
Regards,
IsmaelNovember 13, 2014 at 12:37 am #350498This reply has been marked as private.November 14, 2014 at 5:22 am #351124Hi!
Please post the login details here and set it as a private reply. We would like to check it. I’ll ask the rest of the support team to take a look.
Best regards,
IsmaelNovember 14, 2014 at 4:21 pm #351287This reply has been marked as private.November 15, 2014 at 7:15 am #351706Hey!
Looks like the redirects are working now. We have to add it manually on the .htaccess file using Yoast. We disabled the simple 301 redirect plugin.
http://la-appraisal.com/wp-content/themes/enfold/framework/php/wordpress-importer/
http://la-appraisal.com/wp-content/themes/enfold/framework/php/avia_shortcodes/
http://la-appraisal.com/wp-content/themes/enfold/framework/css/conditional_load/
Regards,
IsmaelNovember 15, 2014 at 1:33 pm #351796“Google is indexing all these random pages based on Enfolds framework”.
It’s a better option to use the robots.txt file to prevent Google from crawling URL’s you don’t want it too.
It is possible that redirecting a theme file/folder to the homepage could be seen as an unhealthy redirect. After all why would someone land on the Enfold theme folder URL anyway? I doubt that would ever appear in the SERPS.If you have a URL that doesn’t really have a relevant redirect (in order to maintain the UX) then either leave it as a 404 in Webmaster Tools or use the robot.txt file to prevent the crawl.
For example I have:
User-agent: *Allow: /
Disallow: /wp-admin/
Disallow: /wp-content/plugins/
Disallow: /wp-content/themes/enfold/framework/
Disallow: /feed/
Disallow: */feed/
Disallow: /wp-content/themes/enfold/config-layerslider/May be better to notify the crawlers to simply not crawl the URL’s you specify.
Hope that helps
Ed- This reply was modified 10 years, 1 month ago by Swarez.
November 15, 2014 at 4:35 pm #351827Hi Ismael, thank you for your reply above…that seems to work. I wonder why the plugin wasn’t responding?!!
Ed, I also appreciate your feedback on this so thank you.I do have the following rules in place for my robot.txt file and it no longer seems to index the theme folder files…
User-agent: *
Disallow: /cgi-bin
Disallow: /wp-admin
Disallow: /wp-includes
Disallow: /wp-content/plugins
Disallow: /wp-content/cache
Disallow: /wp-content/themes
Disallow: /*?*
Disallow: /*?
Allow: /wp-content/uploadsBut with regards to the current theme pages being indexed….it was my understanding that it brought greater value having them redirected to a content-driven page as opposed to a 404? Or am I wrong?
While we are on the subject of 404’s….is there a way to build a custom 404 page?
Thanks in advance!
JustinNovember 15, 2014 at 5:47 pm #351834I would argue that a system file wasn’t content anyway and if you try to take someone to a homepage or blog post that could look strange. It’s OK to return 404’s as content will inevitably move or change along with URL’s over the lifetime of a site. Customizing a 404 page is a good move to reassure the user.
I personally favour redirects to like pages with similar content rather than sending every 404 URL somewhere else.
-
AuthorPosts
- The topic ‘Redirects’ is closed to new replies.