Jump to content

Can't get to admin/setup/authn/view


markc

Recommended Posts

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.

Link to comment
Share on other sites

  • WHMCS Developer

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 ###

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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;

 

Link to comment
Share on other sites

Join the conversation

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

Guest
Reply to this topic...

×   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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated