troubleshooting Question

htaccess redirect causing old filename to become a suffix of new URL

Avatar of McCoyIT
McCoyIT asked on
Apache Web ServerHTTP Protocol
3 Comments1 Solution526 ViewsLast Modified:
I am having an issue where my redirected filenames are being attached to the URL of the new site's URL.

ex. www.mccoyjobs.com/privacy.php
becomes: http://www.mccoyglobal.com/index.php/careersprivacy.php
Should be http://www.mccoyglobal.com/index.php/privacy-policy as per the line below
redirect 301 /privacy.php http://www.mccoyglobal.com/index.php/privacy-policy

I do have rules in the htaccess to redirect www.mccoyglobal.com/careers to www.mccoyglobal.com/index.php/careers

And I am using the rewrite for no-www to www
RewriteEngine On
RewriteCond %{HTTP_HOST} ^mccoyglobal\.com
RewriteRule ^(.*)$ http://www.mccoyglobal.com/$1 [R=301,L]

Options -MultiViews

The only thing I can think of is the domain is being forwarded but last checked nothing has been set to forward.
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 3 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros