Go Back   CodingForums.com > :: Server side development > Apache configuration

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 08-28-2012, 02:08 AM   PM User | #1
kingworks
New Coder

 
Join Date: Nov 2009
Posts: 17
Thanks: 2
Thanked 0 Times in 0 Posts
kingworks is an unknown quantity at this point
Exclamation Problem with .htaccess 301 redirect for Wordpress site in a subdirectory

Moving an .html site into Wordpress, but the redirects are not working.

Ex: http://www.schoolpsychologistfiles.c...isability.html should go to http://www.schoolpsychologistfiles.com/EmDisability

Instead, users get a 404 error.

Wordpress files (including the .htaccess file I edited) reside here:
/public_html/schoolpsychologistfiles

Here is the .htaccess file:
Code:
# 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

# For security reasons, Option followsymlinks cannot be overridden.
#Options +FollowSymLinks
Options +SymLinksIfOwnerMatch
RewriteEngine On
rewriterule ^ADHD.html(.*)$ http://www.schoolpsychologistfiles.com/adhd/$1 [r=301,nc,l]
rewriterule ^ADHDfaq.html(.*)$ http://www.schoolpsychologistfiles.com/adhdfaq/$1 [r=301,nc,l]
rewriterule ^asfaq.html(.*)$ http://www.schoolpsychologistfiles.com/asfaq/$1 [r=301,nc,l]
rewriterule ^aspergers.html(.*)$ http://www.schoolpsychologistfiles.com/aspergers/$1 [r=301,nc,l]
rewriterule ^autism.html(.*)$ http://www.schoolpsychologistfiles.com/autism/$1 [r=301,nc,l]
rewriterule ^behavioralPlans.html(.*)$ http://www.schoolpsychologistfiles.com/behavioralplans/$1 [r=301,nc,l]
rewriterule ^consultation.html(.*)$ http://www.schoolpsychologistfiles.com/consultation/$1 [r=301,nc,l]
rewriterule ^EligibilityFaq.html(.*)$ http://www.schoolpsychologistfiles.com/eligibilityfaq/$1 [r=301,nc,l]
rewriterule ^EmDisability.html(.*)$ http://www.schoolpsychologistfiles.com/emdisability/$1 [r=301,nc,l]
rewriterule ^Ineligibility.html(.*)$ http://www.schoolpsychologistfiles.com/ineligibility/$1 [r=301,nc,l]
rewriterule ^Ineligible.html(.*)$ http://www.schoolpsychologistfiles.com/ineligible/$1 [r=301,nc,l]
rewriterule ^LearningDis.html(.*)$ http://www.schoolpsychologistfiles.com/learningdis/$1 [r=301,nc,l]
rewriterule ^slowLearnerFaq.html(.*)$ http://www.schoolpsychologistfiles.com/slowlearnerfaq/$1 [r=301,nc,l]
rewriterule ^specialEducation.html(.*)$ http://www.schoolpsychologistfiles.com/specialEducation/$1 [r=301,nc,l]
rewriterule ^spedTesting.html(.*)$ http://www.schoolpsychologistfiles.com/spedtesting/$1 [r=301,nc,l]
rewriterule ^testScores.html(.*)$ http://www.schoolpsychologistfiles.com/testscores/$1 [r=301,nc,l]
Any help is greatly appreciated.
kingworks is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:58 AM.


Advertisement
Log in to turn off these ads.