Feb 18, 2013; 19:18
dabrams
=?utf-8?Q?using_mod=5Frewrite_to_remove_file_extention?=
I have a web server that I'd like to set up to remove the file extension off of the URL. The server is an Ubuntu box with Apache serving Lasso pages. I have tried Googling solutions to this and adding them to the apache2.conf file, but I am not seeing any results.
What I'm after is to change a URL like this:
www.somedomain.com/somepage.lasso
to:
www.somedomain.com/somepage
and still have Lasso process the page.
Here's what I have added to the apache2.conf file:
<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_METHOD} =GET
RewriteRule (.*)\.lasso$ $1/ [L,R=301]
</IfModule>
I make sure to restart Apache after making any edits. I also went and checked the apache modules directory and found a mod_rewrite.so, but not a mod_rewrite.c file. I'm not sure what to do here.
#############################################################
This message is sent to you because you are subscribed to
the mailing list Lasso
Lasso@lists.lassosoft.com
To unsubscribe, E-mail to: <Lasso-unsubscribe@lists.lassosoft.com>
Send administrative queries to <Lasso-request@lists.lassosoft.com>