All .htacces and mod_rewrite answered - examples, tips and tricks Forum Index  

All .htacces and mod_rewrite answered - examples, tips and tricks Forum Index -> Cool URLs - basics -> Put name of document to search form if not found
Author Message
admin
Site Admin


Joined: 18 Jul 2006
Posts: 89

PostPosted: Tue Jul 18, 2006 3:20 pm    

Put name of document to search form if not found

Reply with quote

We want:
http://host.com/[*.*].html -> http://host.com/index.php?search=[*.*]

Code:
RewriteRule ^([^.]+)\.html$ /index.php?search=$1 [L]

Source:http://www.mod-rewrite.com/forum/thread464.html
Back to top
Display posts from previous:   
Post new topic   Reply to topic   
View previous topic
View next topic
All .htacces and mod_rewrite answered - examples, tips and tricks Forum Index
Page 1 of 1
Jump to:  
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 vote in polls in this forum
FreeMind 1.1 Template by AU Templates