Viewing 6 replies - 1 through 6 (of 6 total)
  • The plugin supports both .html and .htm files for Quick Redirects.

    Not sure if this is the case in this instance, but you do need to make sure that the request URL does not exist on the server already. if it does you will need to remove it as WordPress’ .htaccess settings will resolve to the existing file first. If the file or folder does not exist, it will then load WordPress and the redirect can be processed.

    Can you give me an example URL of a redirect you set up that is not working?

    Regards,
    Don

    Thread Starter awedler

    (@awedler)

    Hi Don,

    How do I find out if the request URL exists on the server already? And how do I remove it, if it is?

    Here’s one of the URL’s that I want to be redirected:
    http://www.modularmining.com/lang/spanish/sp_optimization.html

    I want it to redirect to:
    http:www.//modularmining.com/es/solution/optimizacion/

    In my Quick Redirects, here’s how I have it set up:
    Request: /lang/spanish/sp_optimization.html

    Destination:
    http:modularmining.com/es/solution/optimizacion/

    When it’s set up like this, it doesn’t work. But if I remove the “l” from the request root (/lang/spanish/sp_optimization.htm), it works fine…which is what led me to believe that the plugin only works with .htm files…

    Regards,
    Alyssa

    Thread Starter awedler

    (@awedler)

    Correction: I want the URL to redirect to:

    http://modularmining.com/es/solution/optimizacion/

    Thanks,
    Alyssa

    Alyssa,
    The URL you supplied actually does exist on the server. The reason it works without the ‘l’ on the ‘html’ is that THAT request does not exist.

    also, in your destination, make sure you only have /es/solution/optimizacion/ – this part ( http:modularmining.com) is not needed (and is not correct)

    The easiest way to see if a file exists on the server is to use the file manager on your host account (if you have one) or an FTP client. It looks like you had an old site that was converted into WordPress – so my guess is you still have those files and folders on the server in the same folder. You will either need to rename the folders or remove them. Make sure if you do remove them, that you do not need them for something and that you have a back up – ask your web person (if you have one), if you need them or not.

    Until you do that, you will always have issues with redirects – via out plugin or any other – because of the way WordPress (and the htaccess file) works. You will also have problems with Google keeping the old indexed pages in the search results – so it is better to get rid of them than to keep them, in my opinion.

    After this is taken care of, you should have no problem redirecting any page you want.

    Warmest regards.
    Don

    RE: Correction: I want the URL to redirect to..

    I figured that you just had the mistype! You can have the entire URL, but I always suggest just using the relative path – so it would be /es/solution/optimizacion/.

    If you ever decide to change the domain name, you will have A LOT less work to do because they will already be relative and not static to the domain.

    Warmest regards,
    Don

    Thread Starter awedler

    (@awedler)

    Hi Don,

    Thank you so much. It’s nice to finally get an explanation that makes sense…and to know that I’m not going crazy. I’ll have our web developer take care of this right away.

    Thanks again,
    Alyssa

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘redirects don't work for .html’ is closed to new replies.