homepage Welcome to WebmasterWorld Guest from 54.197.19.35
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe to WebmasterWorld

Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
redirect 301
incorrect url to correct url
shug




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

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.

Shug

 

g1smd




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

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.

shug




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

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.
Shug

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved