markc Posted October 4, 2017 Share Posted October 4, 2017 The link I have for Setup > Sign-In Integrations is admin/setup/authn/view but I get a 404 Not Found. I use nginx but it wouldn't matter if I were using apache because without the appropriate rewrite rule it will never work. Would anyone have a suggestion as to the correct rewrite rule? I understand nginx is supported so an apache .htaccess rule would be fine and I'll manually convert it. 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Developer WHMCS Andrew Posted October 4, 2017 WHMCS Developer Share Posted October 4, 2017 You can get the rules in Setup -> General Settings look at the Advanced Settings for the "Friendly URLs" section. By default, the rules look like this: ### BEGIN - WHMCS managed rules - DO NOT EDIT BETWEEN WHMCS MARKERS ### <IfModule mod_rewrite.c> RewriteEngine on # RewriteBase is set to "/" so rules do not need updating if the # installation directory is relocated. It is imperative that # there is also a RewriteCond rule later that can effectively get # the actual value by comparison against the request URI. # # If there are _any_ other RewriteBase directives in this file, # the last entry will take precedence! RewriteBase / # Redirect directories to an address with slash RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^(.+[^/])$ $1/ [R] # Send all remaining (routable paths) through index.php RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d # Determine and use the actual base RewriteCond $0#%{REQUEST_URI} ([^#]*)#(.*)\1$ RewriteRule ^.*$ %2index.php [QSA,L] </IfModule> ### END - WHMCS managed rules - DO NOT EDIT BETWEEN WHMCS MARKERS ### 0 Quote Link to comment Share on other sites More sharing options...
markc Posted October 4, 2017 Author Share Posted October 4, 2017 Ah, thanks for the reminder about the "Friendly URLs" section. I set it to basic and now I can at least get to the Sign-In Integrations page using this URL... /admin/index.php?rp=/admin/setup/authn/view So now I just have to figure out the nginx equivalent for these 2 lines below (I presume) and I then can go back to using Full Friendly Rewrite. Thank you WHMCS Andrew RewriteCond $0#%{REQUEST_URI} ([^#]*)#(.*)\1$ RewriteRule ^.*$ %2index.php [QSA,L] If anyone has already worked out the nginx equivalent to the above then a hint would be appreciated. 0 Quote Link to comment Share on other sites More sharing options...
markc Posted October 11, 2017 Author Share Posted October 11, 2017 I've added Twitter and G+ API authentication but nothing is showing up on my Signin page. How would I go about debugging this and trying to figure out why these 2 extra buttons are not showing up? 0 Quote Link to comment Share on other sites More sharing options...
GoogieHost Posted October 11, 2017 Share Posted October 11, 2017 I had same issue and when I switched my theme to default and switched back to our custom design, I got facebook and Google+ login button page. Please try to change your theme from Settings>> General 0 Quote Link to comment Share on other sites More sharing options...
markc Posted October 12, 2017 Author Share Posted October 12, 2017 Thanks for the tip. I tried that, and flushing my template cache, but it turns out I did not update my customised six theme along with the recent 7.3 update! It's a pity WHMCS does not adopt the Wordpress child-theme strategy because my only modifications are in css/custom.css. And for anyone using nginx I find this extra rule allows me to go back to "Full Friendly Rewrite" and now /admin/setup/authn/view works... rewrite ^/admin/setup/(.*)$ /admin/index.php?rp=/admin/setup/$1 last; 0 Quote Link to comment Share on other sites More sharing options...
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.