Jump to content

shorten url in .htaccess


kalster

Recommended Posts

Yes both types of urls are possible. Try adding the following to your .htaccess

RewriteEngine On

RewriteRule index(\.php)?/(\d+)/(\d+)/?   index.php?q=$2&w=$3

But you will need to edit your links in your php script to use the new url format. mod_rewrite does not alter the the links for you.

  • 3 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.