Welcome to WebmasterWorld Guest from

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

redirect 301

incorrect url to correct url



2:05 pm on Mar 8, 2009 (gmt 0)

10+ Year Member

New to Apache so please bear with me.
I have been getting 404 errors caused by an incorrect website url for my site on a message board.

incorrect url is www.domain.co.uk/%22www.domain.co.uk
correct url is www.domain.co.uk

Can I use htaccess to redirect or correct this?
Thank you for your time.



5:03 pm on Mar 8, 2009 (gmt 0)

WebmasterWorld Senior Member g1smd is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

Yes. It should be a very easy job.

First, decide whether you want to just fix this one rogue URL, or whether to also cater for any request with %22 within.


5:13 pm on Mar 8, 2009 (gmt 0)

10+ Year Member

Thanks for your reply.
I just have this one rogue URL. Does anyone have the code I need to input to .htaccess to fix this please.
Thanks again.

Featured Threads

Hot Threads This Week

Hot Threads This Month