× {{alert.msg}} Never ask again
Get notified about new tutorials RECEIVE NEW TUTORIALS

Site registration works great on local development server, breaks on production host

Daniel Povolotski
Aug 04, 2014
<p><strong>Q: What was the request about? </strong><br>The mentee built a site that was working great on the local development server but mysteriously failing to register new users once deployed to a production host.<br><br><strong>Q: How did you help with the request?</strong><br>Upon investigation the issue I found out that the mentee used the &lt;base&gt; HTML tag on the production server, but not on the development server.</p><p>The inclusion of the &lt;base&gt; tag changed the URL that the &lt;form&gt; action was effectively redirecting to, breaking the registration process.</p><p>I have explained the side effects of the &lt;base&gt; tag to the mentee, and we were able to adjust the deployment process to prevent this issue from arising again.<br><br><strong>Q: Any best practices &amp; key learnings you can share?</strong><br><br>You can find out more about the side effects of using &lt;base&gt; here:</p><p>http://stackoverflow.com/questions/1889076/is-it-recommended-to-use-the-base-html-tag</p>