homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

301 redirect

 8:35 pm on May 26, 2010 (gmt 0)

I would appreciate your help with a 301 redirect which I am unsure about. I have looked about for an answer to no avail as yet.

I posted my website url on a bulletin board when answering a posting but the link never appeared as intended and subsequently I get page 404 on my logs.

I would like to redirect this example:

http://example.com%22www.example.com to www.example.com/home.php
Thank you for your time.


[edited by: jdMorgan at 3:35 am (utc) on May 27, 2010]
[edit reason] example.com [/edit]



 3:49 am on May 27, 2010 (gmt 0)

There's no way to redirect that link, because the domain name is invalid and the request will therefore fail to resolve at the DNS level.

As a result, the request will not be delivered to your server, so your server cannot redirect it.

If the posted URL had had a trailing slash (http://example.com/%22www.example.com), this problem would have been recoverable, because the domain could have then been resolved properly, and you could then have written code to detect the URL-path starting with an encoded quote.



 12:24 pm on May 27, 2010 (gmt 0)

Many thanks, Jim for saving me a lot of time - much appreciated.


 12:33 pm on May 27, 2010 (gmt 0)

Yeah, sorry to have to give a "disappointing" answer, though... :(


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