WordPress.org

Ready to get started?Download WordPress

Forums

Redirect www link to specific page/post (2 posts)

  1. fuzzie
    Member
    Posted 11 months ago #

    We sent out a marketing email with a bad link:
    http://www.newbirthoffreedom.org/cookout
    It should have been:
    http://newbirthoffreedom.org/giving/campfire-cookout/
    or just
    http://newbirthoffreedom.org/cookout
    The www. is creating the problem.
    How can I fix this to redirect the bad link to the right link?

    I've tried Redirect 301 www.newbirthoffreedom.org/cookout /cookout
    and several variations, including the entire url, restarting apache, etc, with no luck.

    My htaccess looks like this:

    RewriteEngine On
    RewriteBase /
    
    #uploaded files
    RewriteRule ^(.*/)?files/$ index.php [L]
    RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*
    RewriteRule ^(.*/)?files/(.*) wp-includes/ms-files.php?file=$2 [L]
    
    # add a trailing slash to /wp-admin
    RewriteCond %{REQUEST_URI} ^.*/wp-admin$
    RewriteRule ^(.+)$ $1/ [R=301,L]
    
    <IfModule mod_security.c>
    <Files async-upload.php>
    SecFilterEngine Off
    SecFilterScanPOST Off
    </Files>
    </IfModule>
    
    # BEGIN WordPress
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule . - [L]
    RewriteRule  ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 [L]
    RewriteRule  ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]
    
    # END WordPress

    Any help is much appreciated.

  2. fuzzie
    Member
    Posted 11 months ago #

    *bump*
    I can't believe we are the only ones with this problem?

Reply

You must log in to post.

About this Topic

Tags

No tags yet.