swisse Posted November 12, 2012 Share Posted November 12, 2012 Hi everybody, I'm new to PHP. Please help me out with my problem. I'm developing my site in a virtual host on a Mac OS Lion with MAMP Pro. I can send emails to my dummy email address: Thank you for registering. To activate your account, please click on the link: http://userreg/activate.php?x=sampleemail%40gmail.com&y=23478180b400db193c28e328f1edd8c1 but can't activate the user because of this error: Not Found The requested URL /$url was not found on this server. Thanks for taking your time to read my post. Link to comment Share on other sites More sharing options...
Larry Posted November 12, 2012 Share Posted November 12, 2012 The actual URL you've posted is to usereg not userreg (one "r" vs two). 1 Link to comment Share on other sites More sharing options...
swisse Posted November 12, 2012 Author Share Posted November 12, 2012 Thanks Larry for the fast reply. Sorry for the error, I wasn't sure if it was 1 r or 2 r's. You're right. I checked the name of the virtual host and it contains only 1 r. So it's named usereg. My apologies. If I click the link in my email it still says "Not Found The requested URL/$url was not found on this server". Link to comment Share on other sites More sharing options...
Larry Posted November 12, 2012 Share Posted November 12, 2012 Okay, what is the URL used in the email? Link to comment Share on other sites More sharing options...
swisse Posted November 13, 2012 Author Share Posted November 13, 2012 Hi Larry, This is the message with a new link: Thank you for registering. To activate your account, please click on the link: http://usereg/activate.php?x=aylilynandrizzo%40gmail.com&y=972205c63d7503b9c9ebdfbb6a63de40 Thanks. Link to comment Share on other sites More sharing options...
Larry Posted November 13, 2012 Share Posted November 13, 2012 Okay. Does this URL work: http://usereg/ ? Link to comment Share on other sites More sharing options...
swisse Posted November 13, 2012 Author Share Posted November 13, 2012 Hi Larry, The URL http://usereg/ brings me to the index.php. Link to comment Share on other sites More sharing options...
swisse Posted November 13, 2012 Author Share Posted November 13, 2012 I don't know what the cause was, but I think I lost the contents of x and y while being processed in activate.php. Therefore I assigned x and y to variables and the activation went through. Thanks Larry for helping me. Link to comment Share on other sites More sharing options...
Larry Posted November 14, 2012 Share Posted November 14, 2012 Glad you figured it out and thanks for sharing the solution. Link to comment Share on other sites More sharing options...
Recommended Posts