I have my .htaccess file set up to omit .php extensions from URLs. For instance:mysite.com/page
mysite.com/item
mysite.com/about
Read from:mysite.com/page.php
mysite.com/item.php
mysite.com/about.php
Which is great; however, I use the remaining part of the URL for parameters, which I want to be ignored. For instance, I want:mysite.com/item/1234567890/a-productTo read from:mysite.com/item.phpRather than:mysite.com/item/1234567890/a-product.phpAny idea how I can accomplish this in .htaccess? Here is my current .htaccess file:\[code\]RewriteEngine OnRewriteBase /RewriteCond %{REQUEST_FILENAME} !-dRewriteCond %{REQUEST_FILENAME}\.php -fRewriteRule ^(.*)$ $1.php\[/code\]
mysite.com/item
mysite.com/about
Read from:mysite.com/page.php
mysite.com/item.php
mysite.com/about.php
Which is great; however, I use the remaining part of the URL for parameters, which I want to be ignored. For instance, I want:mysite.com/item/1234567890/a-productTo read from:mysite.com/item.phpRather than:mysite.com/item/1234567890/a-product.phpAny idea how I can accomplish this in .htaccess? Here is my current .htaccess file:\[code\]RewriteEngine OnRewriteBase /RewriteCond %{REQUEST_FILENAME} !-dRewriteCond %{REQUEST_FILENAME}\.php -fRewriteRule ^(.*)$ $1.php\[/code\]