formatting apache rewrite rule

  • komrad
  • Newbie
  • Newbie
  • komrad
  • Posts: 9

Post 3+ Months Ago

Hello all,

I have dynamic pages that look like this.

/index.php?purl=text_variable_with_underscore_2355.html

What would be the rewrite rule to get them to look like this.

/text_variable_with_underscore_2355.html

There is no other page besides index.php for this site.

Thanks
  • joebert
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13504
  • Loc: Florida

Post 3+ Months Ago

I'd try something like this for starters.

Code: [ Select ]
Options +FollowSymLinks -Multiviews
 
RewriteEngine on
RewriteBase /
RewriteRule ^([a-z0-9_]+\.html)$ index.php?purl=$1 [QSA,L]
  1. Options +FollowSymLinks -Multiviews
  2.  
  3. RewriteEngine on
  4. RewriteBase /
  5. RewriteRule ^([a-z0-9_]+\.html)$ index.php?purl=$1 [QSA,L]

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 129 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.