Viewing 21 posts - 1 through 21 (of 21 total)
  • Author
    Posts
  • #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!

    #343877

    Hey 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,
    Ismael

    #344073
    This reply has been marked as private.
    #344434

    Hey!

    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,
    Arvish

    #345445
    This reply has been marked as private.
    #346314

    Hey!

    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,
    Andy

    #346335
    This reply has been marked as private.
    #346940

    Hey!

    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!
    Ismael

    #346955
    This reply has been marked as private.
    #348040

    Hi!

    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,
    Ismael

    #348162
    This reply has been marked as private.
    #348630

    Hi!

    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,
    Ismael

    #348988
    This reply has been marked as private.
    #350289

    Hi!

    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,
    Ismael

    #350498
    This reply has been marked as private.
    #351124

    Hi!

    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,
    Ismael

    #351287
    This reply has been marked as private.
    #351706

    Hey!

    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,
    Ismael

    #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 ago by Swarez.
    #351827

    Hi 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/uploads

    But 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!
    Justin

    #351834

    I 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.

Viewing 21 posts - 1 through 21 (of 21 total)
  • The topic ‘Redirects’ is closed to new replies.