The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (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
URL Rewriting
#4
Thanks for the reply. I got it working with this code below. Someone else might find it useful.

RewriteEngine on
RewriteCond {3bc1fe685386cc4c3ab89a3f76566d8931e181ad17f08aed9ad73b30bf28114d}{REQUEST_FILENAME} !-d
RewriteCond {3bc1fe685386cc4c3ab89a3f76566d8931e181ad17f08aed9ad73b30bf28114d}{REQUEST_FILENAME}\.html -f
RewriteRule ^(.*)$ $1.html

RewriteCond {3bc1fe685386cc4c3ab89a3f76566d8931e181ad17f08aed9ad73b30bf28114d}{REQUEST_FILENAME} !-d
RewriteCond {3bc1fe685386cc4c3ab89a3f76566d8931e181ad17f08aed9ad73b30bf28114d}{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php

Just that the pages loads either .php is specified or not and still maintain the entered url. What I was hoping for was to remove .php even if specified.
  Reply


Messages In This Thread
URL Rewriting - by jason - 12-09-2016, 08:33 AM
URL Rewriting - by dan - 12-09-2016, 10:39 PM
URL Rewriting - by dan - 12-09-2016, 10:41 PM
URL Rewriting - by jason - 12-10-2016, 02:45 AM

Forum Jump:


Users browsing this thread: 2 Guest(s)