Jump to content
  • 0

My "pay Now (No Login Required)" Link Isn't Working (3.4): Workaround



Hey All,


I was having a problem with the "Pay Now (No Login Required)" link being broken when using the default email templates.


While the documentation says to use the full filesystem path for the "Root Web Directory", that causes the URLs in my invoice emails to include the full file system path in the URLs.

See here: http://docs.blesta.com/display/user/System+%3E+General -> "Root Web Directory

The full server path to the web directory where Blesta is installed."


Other searches in the forum seemed to confirm the use of the full server path.


Am I alone in seeing this? If not, how has everyone else solved this? If so, any thoughts on what I might have done wrong? My Blesta setup is quite close to stock.




After burning too much of a day on understanding what's going on and wrestling with mod_rewrite, I have a workaround. I'd still like to find a proper fix, but at least my clients won't be confused by being sent to my Blesta main page.


Posted here so others who encounter this can save some time and headache.


Add to .htaccess

# Fix broken Pay Now Links
RewriteCond %{Request_URI} ^<FILE SYSTEM PATH>/client/pay/method(.*)$
RewriteBase /
RewriteRule ^<FILESYSTEM PATH>/client/pay/method/(.*)  /client/pay/method/$1 [R=301,NC,L,NE]


Link to comment
Share on other sites

3 answers to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...