The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.1.2-1ubuntu2.18 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
.htaccess not working with 'post' requests
#6
Hi,

Sure! There you go

Options +FollowSymLinks -MultiViews
# Turn mod_rewrite on
RewriteEngine On
# RewriteBase /

# To externally redirect /dir/foo.php to /dir/foo
RewriteCond {3bc1fe685386cc4c3ab89a3f76566d8931e181ad17f08aed9ad73b30bf28114d}{THE_REQUEST} ^[A-Z]{3,}\s([^.]+)\.php [NC]
RewriteCond {3bc1fe685386cc4c3ab89a3f76566d8931e181ad17f08aed9ad73b30bf28114d}{REQUEST_METHOD} !POST
RewriteRule ^ {3bc1fe685386cc4c3ab89a3f76566d8931e181ad17f08aed9ad73b30bf28114d}1 [R,L,NC]

## To internally redirect /dir/foo to /dir/foo.php
RewriteCond {3bc1fe685386cc4c3ab89a3f76566d8931e181ad17f08aed9ad73b30bf28114d}{REQUEST_FILENAME}.php -f [NC]
RewriteCond {3bc1fe685386cc4c3ab89a3f76566d8931e181ad17f08aed9ad73b30bf28114d}{REQUEST_METHOD} !POST
RewriteRule ^ {3bc1fe685386cc4c3ab89a3f76566d8931e181ad17f08aed9ad73b30bf28114d}{REQUEST_URI}.php [L]
  Reply


Messages In This Thread
.htaccess not working with 'post' requests - by bitsoft - 03-10-2017, 02:17 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)