Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8758579
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T14:35:07+00:00 2026-06-13T14:35:07+00:00

I am moving a client from a custom developed PHP site to WordPress. I

  • 0

I am moving a client from a custom developed PHP site to WordPress. I am now in the process of using 301 Redirects in the .htaccess file to move the old locations to the new ones in WordPress. Some of them are working and some not (meaning it serves up the “old” location). I have the standard “pretty permalinks” mod_rewrite section in the file and then all the 301’s.

So, the ones that have an original location that are listed like a directory (re-written index.php) work and the ones that have an explicitly named php file do not. Examples:

This works:

Redirect 301 /about/ http://deanchiropractic.com/about-us/

This does (still serves dr-jon.php):

Redirect 301 /about/dr-jon.php http://deanchiropractic.com/about-us/dr-jon-dean/

I have tried changing the order around, tried having the 301s before and after the mod-rewrite section, tried with and without a DirectoryIndex line. I’ve also verified that i am editing the .htaccess in the webserver root.

I’d rather get my .htaccess working than put php to do the 301 Redirects in all the files that aren’t redirecting (I have tried, and verified that using one file).

Here is the entire thing for reference:

DirectoryIndex index.php index.html
Redirect 301 /about/dr-dean.php http://deanchiropractic.com/about-us/christophe-dean-dc/
Redirect 301 /about/dr-jon.php http://deanchiropractic.com/about-us/dr-jon-dean/
Redirect 301 /techniques/activator.php http://deanchiropractic.com/chiropractic-techniques/activator-method/
Redirect 301 /techniques/cox-technique.php http://deanchiropractic.com/chiropractic-techniques/cox-technique/
Redirect 301 /techniques/active-release.php http://deanchiropractic.com/chiropractic-techniques/active-release-technique/
Redirect 301 /community/dinner-talk.php http://deanchiropractic.com/get-healthy/
Redirect 301 /community/refer.php http://deanchiropractic.com/get-healthy/
Redirect 301 /resources/forms.php http://deanchiropractic.com/forms/
Redirect 301 /resources/faq.php http://deanchiropractic.com/faq/
Redirect 301 /resources/articles/low-back-pain-relief.php http://deanchiropractic.com/low-back-pain-relief/
Redirect 301 /resources/articles/about-the-activator-method.php http://deanchiropractic.com/achieve-wellness-with-the-activator-method/
Redirect 301 /resources/articles/spinal-disc-treatment.php http://deanchiropractic.com/spinal-disc-treatment/
Redirect 301 /resources/articles/headache-relief-benefits.php http://deanchiropractic.com/headache-relief/
Redirect 301 /resources/articles/carpal-tunnel-relief.php http://deanchiropractic.com/carpal-tunnel-relief/
Redirect 301 /resources/articles/neck-pain-relief.php http://deanchiropractic.com/neck-pain-relief/
Redirect 301 /testimonials.php http://deanchiropractic.com/reviews/
Redirect 301 /contact.php http://deanchiropractic.com/contact-us/
Redirect 301 /about/    http://deanchiropractic.com/about-us/
Redirect 301 /techniques/   http://deanchiropractic.com/chiropractic-techniques/
Redirect 301 /community/    http://deanchiropractic.com/get-healthy/
Redirect 301 /resources/    http://deanchiropractic.com/forms/
Redirect 301 /resources/articles/   http://deanchiropractic.com/category/articles/
# 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

I’ve searched wide, and on this site and can’t find a match for my exact problem…though I’ve learned a lot about .htaccess in the process (still a n00b tho). Thanks….

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T14:35:08+00:00Added an answer on June 13, 2026 at 2:35 pm

    It’s possible that mod_alias and mod_rewrite are interferring with each other because they both get applied to the same URL in the processing pipeline. In this case, it may be that the URI is changed and a redirection is flagged by mod_alias (via the Redirect directive) but then mod_rewrite does its thing and rewrites the URI to get routed through index.php, but the URI is flagged for a redirect so at the end of the pipeline, you have a mangled URI that gets sent as a redirect. You can avoid this by sticking with just mod_rewrite and using the L flag so the wordpress rules don’t get applied:

    RewriteEngine On
    RewriteRule ^/?about/dr-dean.php http://deanchiropractic.com/about-us/christophe-dean-dc/ [L,R=301]
    RewriteRule ^/?about/dr-jon.php http://deanchiropractic.com/about-us/dr-jon-dean/ [L,R=301]
    RewriteRule ^/?techniques/activator.php http://deanchiropractic.com/chiropractic-techniques/activator-method/ [L,R=301]
    

    etc…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using .NET Framework 3.5 C#, I am in the process of moving from SOAP-based
I'm moving a large wordpress mysql db (1.49gb) from an old server to a
I'm in the process of moving from an old laptop to a new one.
I am moving to a webserver from my local client which used mysql 5.5
I have a live site built in Wordpress at www.site.com/name1. The client wants a
This one is braking my head . Moving old articles rating for client from
A client is moving from their old hosting to mine. They have a few
Im developing a webmail client using Zend framework and gmail IMAP. Features like moving
We're moving a client from an ASP based shop, to Magento and would like
Can anyone recommend an xml rpc library or client for wordpress using java? I've

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.