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.

Should be as per the line below
redirect 301 /privacy.php

I do have rules in the htaccess to redirect to

And I am using the rewrite for no-www to www
RewriteEngine On
RewriteCond %{HTTP_HOST} ^mccoyglobal\.com
RewriteRule ^(.*)$$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