LupusInferni
Coder
My current .htaccess is this
To make the actual request easier, this is the exact pattern I am looking to rewrite
If any url ends with this pattern I want it to instead show
Apache config:
# ErrorDocument 404 /error/404.php
Options All -Indexes -MultiViews
RewriteEngine On
# Allow urls to not include the .php extension
RewriteCond %{REQUEST_URI}/$1.php -f [NC]
RewriteRule ^(.+?)/?$ $1.php [L]
# Silent Redirect from any url ending with mcc-* to show.php?id=mcc-*
# This is the portion that isn't working
RewriteCond %{REQUEST_URI} (mcc-[\d]+)\.php$
RewriteCond %{REQUEST_URI}/$1.php -f [NC]
RewriteRule show.php?id=$1 [L]
To make the actual request easier, this is the exact pattern I am looking to rewrite
(mcc-[\d]+)
.If any url ends with this pattern I want it to instead show
show.php?id=%ThePattern%
, but only if the url matches this pattern