Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author AITpro

    (@aitpro)

    If you were trying to redirect an old category to a new category you would use the $1 back reference as shown below. The back reference $1 will look for the $ in the first part of the RedirecMatch URL and is basically something like a placeholder or reference point or a “URL splicer”.

    RedirectMatch 301 ^/old-category/my-old-post$ /new-category/my-new-post$1

    The $ on the end of the redirect “to” link is not valid. What would be valid would be a back reference $1, but in this case you do not want to use a back reference.

    Since you are trying to redirect an .html page to a category then you would use this redirect code.

    RedirectMatch 301 ^/quote.html$ http://www.arrowglassracksltd.com/quote/

    Plugin Author AITpro

    (@aitpro)

    Did this solve the issue? If so, please resolve this Thread. Thank you.

    Thread Starter JamieLe

    (@jamieleemi)

    Hi, sorry for not responding sooner.

    Once I’ve added that line to the CUSTOM CODE BOTTOM box, what do I do next?

    Plugin Author AITpro

    (@aitpro)

    Help information copied and pasted from the Blue Read Me Help button on the Custom Code page:

    This Read Me Help window is draggable (top) and resizable (bottom right corner)

    IMPORTANT!!! Custom Code Info IMPORTANT!!!

    Add ONLY valid htaccess code into these text boxes. If you want to add regular text then you need to add a pound sign # in front of the text to comment it out. If you do not do this then the next time you use AutoMagic and activate BulletProof Mode for your Root folder your website WILL crash.

    Your Custom Code is saved permanently to your WordPress Database until you delete it and will not be removed or deleted when you upgrade BPS.

    Root htaccess File Custom Code Setup Steps
    1. Enter your custom code in the appropriate Custom Code text box.
    2. Click the Save Root Custom Code button to save your custom code.
    3. Go to the Security Modes page and click the AutoMagic buttons.
    4. Activate BulletProof Mode for your Root folder.

    CUSTOM CODE TOP: Add php.ini handler code and / or miscellaneous custom code here
    The CUSTOM CODE TOP text area should really ONLY be used for php.ini handler code if BPS is unable to detect your Web Host. You can add your php.ini handler code and miscellaneous custom htaccess code in the CUSTOM CODE TOP text area together, but it is recommended that you ONLY use this text area for your php.ini handler code if your website requires php.ini handler code in your Root htaccess file. BPS Pro ONLY: If BPS Pro is unable to detect your Web Host when you have a Private Name Server, you are using CloudFlare, you are using Pipe DNS or some other service that is blocking your true Web Host Name Servers and DNS information. The CUSTOM CODE BOTTOM text area should be used for miscellaneous custom htaccess code.

    CUSTOM CODE PLUGIN FIXES: Add ONLY personal plugin fixes code here
    This text area is for plugin fixes that are specific to your website. BPS already has some plugin fixes included in the Root htaccess file. Adding additional plugin fixes for your personal plugins on your website goes in this text area. For each plugin fix that you add above RewriteRule . – [S=12] you will need to increase the S= number by one. For Example: if you added 2 plugin fixes above the Adminer plugin fix they would be htaccess Skip rules #13 and #14 – RewriteRule . – [S=13] and RewriteRule . – [S=14]. If you added a third Skip rule above #13 and #14 it would be Skip rule #15 – RewriteRule . – [S=15].

    CUSTOM CODE BOTTOM: Add miscellaneous custom htaccess code here
    You can save any miscellaneous custom htaccess code here as long as it is valid htaccess code or if it is just plain text then you will need to comment it out with a pound sign # in front of the text.

    wp-admin htaccess File Custom Code
    The wp-admin htaccess File Custom Code feature works differently then the Root htaccess Custom Code feature. The wp-admin htaccess file does not use AutoMagic and your Custom Code is written directly to your wp-admin htaccess file when you Activate BulletProof Mode for your wp-admin folder.

    wp-admin htaccess File Custom Code Steps
    1. Enter your custom code in the appropriate Custom Code text box.
    2. Click the Save wp-admin Custom Code button to save your custom code.
    3. Go to the Security Modes page and activate BulletProof Mode for your wp-admin folder.

    CUSTOM CODE WPADMIN TOP: Add miscellaneous custom code here
    You can save any miscellaneous custom htaccess code here as long as it is valid htaccess code or if it is just plain text then you will need to comment it out with a pound sign # in front of the text.

    CUSTOM CODE WPADMIN PLUGIN FIXES: Add ONLY WPADMIN personal plugin fixes code here
    There are only a couple of plugins that require a skip rule in the wp-admin htaccess file. This text area is for plugin fixes that may require a wp-admin htaccess skip rule. There is currently one skip rule in the wp-admin htaccess file – the WP Press This skip rule – RewriteRule . – [S=1]. For each plugin fix / skip rule that you add above RewriteRule . – [S=1] you will need to increase the S= number by one. For Example: if you added 2 wp-admin plugin fixes above the – WP Press This skip rule – they would be htaccess Skip rules #2 and #3 – RewriteRule . – [S=2] and RewriteRule . – [S=3]. If you added a third Skip rule above #2 and #3 it would be Skip rule #4 – RewriteRule . – [S=4].

    Thread Starter JamieLe

    (@jamieleemi)

    Ok, thanks.

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

The topic ‘301 Redirect’ is closed to new replies.