Hello,

I am having a bit of trouble using 301 redirects. I have used the following format, successfully, on many occasions (putting the following code in the .htaccess file and loading into the directory of the domain I wish to redirect):

"redirect 301 /oldpage.html http://www.newdomain.com/newpage.html"

The problem is that the pages are redirecting to: http://www.newdomain.comnewpage.html
In every instance, the slash trailing the domain name is being ignored. I am currently redirecting about 100 pages, and my website is hosted through GoDaddy. I've used this method in the past flawlessly, so I'm a little puzzled as to what I am doing wrong. To remedy the problem, I have tried changing "redirect" to "RedirectMatch", as well as pute all URL locations in quotations. Both of these methods I found after many hours of surfing the web for an answer. I'm absolutely puzzled, any ideas, input, or advice would be greatly appreciated.

Thanks,
- Teal

I forgot to add, the only redirect that is working is:

"redirect 301 / http://www.newpage.com"

The redirect for the homepage seems to be working just fine.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.