Jump to content
007basaran

Rewrite Setting Problem In Whmcs index.php

Recommended Posts

Hello,

# All PHP Requests remove extension .php .htaccess code :
 RewriteCond %{THE_REQUEST} ^GET\s.+\.php [NC]
 RewriteRule ^(.+)\.php$ /$1 [NE,R=301,L,NC]
 RewriteCond %{REQUEST_FILENAME} !-d
 RewriteCond %{DOCUMENT_ROOT}/$1.php -f
 RewriteRule ^(.*?)/?$ $1.php [L]

# Whmcs Standart Rewrite Settings .htaccess code : 
 

### 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-system.php [QSA,L]
</IfModule>
### END - WHMCS managed rules - DO NOT EDIT BETWEEN WHMCS MARKERS ###


Whmcs index.php |  Redirecting to = index 

Example :     whmcs.com/index.php to whmcs.com/index

Page not found error index php redirecting.

How to block index.php redirection ?

Can we disable index.php redirection without breaking the above code?

Regards, Thanks.

Edited by 007basaran

Share this post


Link to post
Share on other sites
5 minutes ago, 007basaran said:

Waiting for help.

you might be better off opening a ticket with support - it can be difficult to give generic answers to htaccess issues.

7 minutes ago, 007basaran said:

Topic Updated.

I thought the redirection problem was all solved by your dummy index.php file ? 9_9

 

Share this post


Link to post
Share on other sites
27 minutes ago, brian! said:

you might be better off opening a ticket with support - it can be difficult to give generic answers to htaccess issues.

I thought the redirection problem was all solved by your dummy index.php file ? 9_9

 

 

Normally the problem is solved, but the modules do not work properly because OAUTH and all functions are returned from the index.php file.

Therefore, the problem of index.php file orientation should be resolved from the root and the default index.php file must be used.

Share this post


Link to post
Share on other sites
1 hour ago, 007basaran said:

Brian do you open ticket in whmcs.com for me ?

no - I don't work for WHMCS, so you'll have to do it yourself...

Share this post


Link to post
Share on other sites

Using ANY decoded files of WHMCS is against the terms of service for WHMCS and can result in license suspension.

Additionally, this is not the 7.3 version of the file.

Share this post


Link to post
Share on other sites
10 minutes ago, WHMCS Andrew said:

Using ANY decoded files of WHMCS is against the terms of service for WHMCS and can result in license suspension.

and I would hope a ban from here too.... lol at him posting decoded files on the official WHMCS forums... :twisted:

2 minutes ago, 007basaran said:

Whmcs v5.2.15 index.php file.

so you're using a file from almost 4 years ago and expecting it to work now and in the future... err ok, good luck with that. 9_9

31 minutes ago, 007basaran said:

*Whmcs not support the developers or designers.

did you even open a ticket with support? :?:

31 minutes ago, 007basaran said:

*Using this index.php and all problems fixed.

you said the same yesterday with your dev index.php file. :)

Share this post


Link to post
Share on other sites

New Htaccess Code : 

RewriteCond %{THE_REQUEST} ^GET\s.+\.php [NC]
RewriteCond %{REQUEST_URI} !^/index\.php [NC]
RewriteRule ^(.+)\.php$ /$1 [NE,R=301,L,NC]

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{DOCUMENT_ROOT}/$1.php -f
RewriteRule ^(.*?)/?$ $1.php [L]

All fixed now.

 

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

  • Similar Content

    • By WGS
      WGS Halloween Sale Is Now Live! Get Flat 30% OFF on all WGS WHMCS Modules and  WGS WHMCS Themes.  
      Use Copon Code - WOO30 to avail the discount. 
       
    • By WGS
      A new version V5.0.0 of our WHMCS OVH, SYS & Kimsufi VPS/Dedicated Server Reseller and Server Management Module is coming soon. It will come up with a lot of new and attractive features. 
      Now OVH users can fully automate the server provisioning. 
      Admin Features: 
       
      Resell Ovh, So You Start And Kimsufi Vps And Dedicated Server. Auto-Provisioning Dedicated/VPS Server After User Purchase. Allows White Label Email Piping. Reduce Overhead It Cost. Automatically Create Dedicated/VPS Products from WHMCS admin. Set Your Profit Margins for Additional IP’s. Manage Products & Config Options Prices from the WHMCS Admin. Send Automatic Notification To User For Spamming Or Overusage. Automatically Send Server Details On New Purchase Or At Reinstallation Time. Increase Your Sales By Selling Additional Addons Like Extra IP’s , Hard Disk And Control Panel License Etc.  
      Client Area Features: 
      Manage OVH, SYS & Kimsufi Server From WHMCS Client Area. Enable Or Disable FTP Backups From WHMCS Client Area. Manage IP’s & Buy Additional IP’s From WHMCS Client Area. Reboot, Reinstall & Netboot Servers From WHMCS Client Area. Upgrade System Resources From WHMCS Client Area. Run KVM & IPMI Console From WHMCS Client Area Enable/Disable Server Monitoring From WHMCS Client Area
    • By ModulesGarden
      1. Amazon Lightsail For WHMCS

      Feedback does not only mean your customers expressing what they want. In fact, to consistently listen to their voice and observe their actions – that is where the most valuable insights lie.

      Responding to our clients’ many requests, now is the high time to move from words to deeds and turn vision into reality. Let us cordially invite you to explore all the ins and outs of our newest Amazon Lightsail For WHMCS module!

      Equipped with it, you will deliver to your audience Amazon Lightsail instances fully adjusted to their unique liking and needs - all that in an utterly automated and most effective manner. As far as the day-to-day monitoring of ordered machines is concerned, your clients can freely turn on and off their instances plus preview server usage info from a chosen time period comprehensively presented on dynamic graphs.

      Wondering how to give your AWS provisioning business a powerful boost with little effort?

      Learn more about Amazon Lightsail For WHMCS!



      2. Are you familiar with the popular among children (and not only!) play called the Telephone Games? The one where participants pass around a message by means of whispering? Exactly the same thing happens when you release exceptionally intriguing or controversial news that soon reaches the ears of thousands and becomes the main topic of all talks. Although the final version that comes out of these conversations contains a grain of truth of the original, the rest seems to be vastly twisted.

      Do you want to put an end to all gossips, myths, and speculations revolving around ModulesGarden? Look into the most reliable source of all - our one-and-only section with Common Questions!

      Have a black and white picture of ModulesGarden!



      3. Did you already see all of our other recent updates? Look over this handy list!
      Kayako For WHMCS - v1.0.4 OVH VPS & Dedicated Servers For WHMCS - v1.0.4 Polish Language Translation For WHMCS - v1.1.1 Server Allocator For WHMCS - v1.1.1 WordPress Manager For WHMCS - v1.3.3  

      Need Custom Software Development For Your Business?
      Get Your Free Quote Now! Specially for you we will adapt an application and its design to your own needs, create a new module or even a completely new system built from scratch!
    • By kan
      Hi
      I have an issue while Placing an order using API. Placing an order with "Free" billing cycle but order placeed with "Monthly" billing cycle. See https://nimb.ws/KhLHV8 .
      https://nimb.ws/KvqJiT
      Product Setting : https://nimb.ws/a9DWBU
      I tried "free","free-account","Free","Free-Account"..etc... But not working.
      $postdata = array( 'action' => 'AddOrder', 'clientid' =>10, 'pid' => array('242'), 'noinvoiceemail'=>true, 'priceoverride'=>'0.00', 'noemail'=>true, 'noinvoice'=>true, 'billingcycle' => array('Free'), 'paymentmethod' => 'paypal', 'responsetype' => 'json' ); Regards
      kan
    • By ModulesGarden
      1. cPanel Extended For WHMCS 3.7.0

      This week, to our immense delight, another well-known module from our WHMCS set was brought a huge step closer to perfection. The talk is all about cPanel Extended For WHMCS and the numerous improvements that enriched the freshly released 3.7.0 update.

      As of now, you will certainly appreciate being empowered with the possibility to rename your PostgreSQL databases as well as change your users’ passwords when such a need arises.

      But most importantly, the two brand-new sections we implemented into the freshest release will add some super-useful functionalities as well, and these are:
      ”Disk Usage” section - giving you the control over the amount of disk space currently in use. ”Email Deliverability” section - helping you to significantly decrease the number of emails send from your server that later on may be treated as spam messages. Do not take our talk for granted as no amount of words can truly do justice to the sheer ingenuity of all the additions implemented in the cPanel Extended For WHMCS 3.7.0. Therefore, we sincerely recommend to simply give them a trial run and judge for yourself!

      Learn All About cPanel Extended For WHMCS 3.7.0!


      2. Would you like to see your favorite SMS gateway integrated into the SMS Center For WHMCS module, entirely for free and with zero additional effort?

      Leave word with our Software Development Advisors and within two weeks from submitting the form we will deliver back to you a finished project for you to enjoy! You have to be quick though – this exclusive offer will soon be a thing of the past!

      Stay ahead of the competition with your client-tailored software!


      3. MetricsCube - GARMTECH Case Study

      Having troubles with keeping track of all the heaps of data generated by your WHMCS-based enterprise? Or maybe you need a helpful hand in plugging the information gaps that prevent your business from dynamic development?

      One thing is certain – you are not alone in this.

      See for yourself by following the case study of GARMTECH, one of the leading web hosting enterprises on the Baltic ISP market, that decided to employ MetricsCube in their everyday data monitoring strategies.

      Delve into the GARMTECH’s full success story and let it founder, Max Korzhanoff, shed some light on how to reach the ultimate heights of success with proper data analytics tool.


      4. Our dynamically expanding list of modules with WHMCS V7.8 support has recently greeted some more modules fully ready to operate in this freshest environment without a hitch:
      Domain Allocator For WHMCS G Suite For WHMCS Interspire Email Marketer For WHMCS InterWorx Extended For WHMCS R1Soft Backups For WHMCS Rackspace Email Extended For WHMCS Rackspace Public Cloud For WHMCS SolidCP Extended For WHMCS SolusVM Extended Cloud For WHMCS SolusVM Extended Reseller For WHMCS SolusVM Extended VPS For WHMCS More updates are coming soon so be sure to keep a watchful eye on our ever-reliable Support List!


      Need Custom Software Development For Your Business?
      Get Your Free Quote Now! Specially for you we will adapt an application and its design to your own needs, create a new module or even a completely new system built from scratch!
  • Recently Browsing   0 members

    No registered users viewing this page.

×

Important Information

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