Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 514 Vote(s) - 3.45 Average
  • 1
  • 2
  • 3
  • 4
  • 5
WHMCS URL-friendly Custom created page with htaccess

#1
I need to load WHMCS [custom page][1] without .php extension but it returns 404.
URL friendly rules are set on htaccess as [default][2].
but they only apply for basic pages.
the last solution would be to set custom rules on htaccess for specific URLs to load without the .php extension.




[1]:

[To see links please register here]

[2]:

[To see links please register here]

Reply

#2
ended up setting custom rules on htaccess for each custom page to also load without the .php extension.

<IfModule mod_rewrite.c>
RewriteEngine on

RewriteBase /

#rempove .php for custom pages on by one
RewriteRule ^customPageOne$ customPageOne.php [L]
RewriteRule ^customPageTwo$ customPageTwo.php [L]
RewriteRule ^customPageThree$ customPageThree.php [L]

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



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through