View Single Post
Old 08-26-2022, 09:51 AM  
k0nr4d
Confirmed User
 
k0nr4d's Avatar
 
Industry Role:
Join Date: Aug 2006
Location: Poland
Posts: 9,228
Quote:
Originally Posted by Publisher Bucks View Post
It’s supposed to rewrite from link.php?id=XX

To /links/some-link-name

There’s a ton of sites including Sitepoint threads that say this should work to achieve that.
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ links.php?id=$1 [QSA,L]
k0nr4d is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote