Forums

301 only partly working (2 posts)

  1. soto3330
    Member
    Posted 10 months ago #

    Current i am having some 301 redirect trouble. Its due to what wordpress is putting into the .htaccess file, but i dont know how to fix it.

    right now the htaccess file looks something like this

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress
    
    RewriteCond %{HTTP_HOST} ^geigerballetacademy\.com$ [OR]
    RewriteCond %{HTTP_HOST} ^www\.geigerballetacademy\.com$
    RewriteRule ^files\/Summer_Extended_08\.doc$ "http\:\/\/geigerballetacademy\.com\/" [R=301,L]

    The problem is, if i test the 301 redirect.. of the one redirect shown i would get geigerballetacademy.com/Summer_Extended_08.doc instead of geigerballetacademy.com.... thats kind of a problem

    Now if i remove this:

    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]

    when i test the 301 redirects like the one above it works properly.... per the test sites i tried http://www.webtoolhub.com/tn561352-url-redirection-checker.aspx and http://www.internetofficer.com/seo-tool/redirect-check/

    so i thought my problem was solved, but after removing the chuck of code now only the main domain works (geigerballetacademy.com)... If i try clicking on any of the links on the page it 404's me

    So how do i get the 301's to work properly, but also make sure the webpage is still accessable?

    Thank you alll for the help!

    [No bumping and try to exercise a little patience, please.]

  2. soto3330
    Member
    Posted 10 months ago #

    if i remove

    RewriteRule . /index.php [L]

    the 301 redirect i added work ex)

    http://www.geigerballetacademy.com/season.html

    to

    geigerballetacademy.com/student-information/

    but all my pages on the website them self 404.. what do i need to change with the line

    RewriteRule . /index.php [L]

    to make both work?????

Reply

You must log in to post.

About this Topic