![]() ![]() ![]() If you want to restrict access to files based on the source IP address of the request, you can do so with PHP.įunction ip_in_list ( $ips ) įor more advanced security and optimization, consider the Advanced CDN service from our Professional Services team. The code will perform rewrites and redirects prior to full WordPress or Drupal bootstrap. The file must be included at the very beginning of your Drupal settings.php or WordPress wp-config.php file. You can recreate Apache mod_redirects and mod_rewrites on the Pantheon platform using the code in the Pantheon htacess Rewrites repository. CliveAtkins sorry just noticed i got a reply, what i am trying to do is lock the link, which means if the user enters index.php, i want it to be redirected to the above link, and if user enters an empty GET variable 'sec' also i want to redirect, and finally if the user enters a variable not equal to 'wnews' or 'pol' or 'tech' or 'sci' or. Pantheon uses nginx for HTTP/HTTPS instead of Apache. You can let the CMS serve a 404, or you can utilize a redirect in wp-config.php or settings.php as shown in the examples above. In this case, the request will run through Drupal or WordPress. So this means you need to create a for loop and loop through the session'word' to see if one is empty. You can use CloudFlare or another stacked CDN to handle file redirects.Īlternatively, you can remove the file entirely from the old location. If the session variables are not set, redirect to play.php with the p parameter set to the first missing session variable. Set general automatic alias settings to Change to lower case within the PathAuto module configuration ( /admin/build/path/pathauto).Įnable Case Sensitive URL Checking within the Global Redirect module configuration ( /admin/settings/globalredirect).īecause Drupal and WordPress aren't bootstrapped when static assets (e.g, images, PDFs, HTML files) are served, the PHP redirects used above will not work when these files are requested directly. Yeah, but more than answer for OP are answers here for people searching similar problems, I guess. Drupal sites can force lowercase letters using the following:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |