WampServer
Apache, PHP, MySQL on Windows
Home forum
Back to WampServer
presentation
Downloads
Addons
Trainings
Alter Way
Go to Topic:
Previous
•
Next
Go to:
Forum List
•
Message List
•
New Topic
•
Search
•
Log In
•
Print View
mod_rewrite rule does not work in wamp
Posted by:
hitekshu
(---.119.68.58.aircel.co.in)
Date: January 27, 2010 07:27AM
Hi,
Below is the rule to convert file names like "abc.v123.css" to "abc.css". but it does not work in wamp.
<IfModule mod_rewrite.so>
RewriteEngine On
RewriteOptions inherit
RewriteRule ^/(.*\.)v[0-9.]+\.(css|js|gif|png|jpg)$ /$1$2
[L,E=VERSIONED_FILE:1]
Header add "Expires" "Mon, 28 Jul 2014 23:30:00 GMT"
env=VERSIONED_FILE
Header add "Cache-Control" "max-age=315360000"
env=VERSIONED_FILE
</IfModule>
Whats the problem here please suggest
Options:
Reply
•
Quote
Re: mod_rewrite rule does not work in wamp
Posted by:
yfastud
(Moderator)
Date: January 27, 2010 05:59PM
did you enable mod rewrite through wamp tray icon?
Have fun,
FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides
Options:
Reply
•
Quote
Re: mod_rewrite rule does not work in wamp
Posted by:
hitekshu
(113.193.154.---)
Date: January 27, 2010 06:04PM
No, i enabled rewrite module from httpd.conf file
Options:
Reply
•
Quote
Re: mod_rewrite rule does not work in wamp
Posted by:
yfastud
(Moderator)
Date: January 27, 2010 06:19PM
if so, did you restart wamp after change?
Have fun,
FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides
Options:
Reply
•
Quote
Re: mod_rewrite rule does not work in wamp
Posted by:
hitekshu
(113.193.154.---)
Date: January 27, 2010 06:21PM
yes i did that too.
could u please validate the rule and let me know if it works well on wamp?
Options:
Reply
•
Quote
Go to:
Forum List
•
Message List
•
Search
•
Log In
Sorry, only registered users may post in this forum.
Click here to login