Feb 18, 2013; 19:25
Mason Miller
Re: using mod_rewrite to remove file extention
Not my strongest area, but it looks like you are rewriting .lasso to / I stead of the other way around.
Mason
Sent from my iPhone
On Feb 18, 2013, at 7:18 PM, dabrams@apple.com wrote:
> 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>
#############################################################
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>
Feb 18, 2013; 17:04
Fletcher Sandbeck
Re: using mod_rewrite to remove file extention
Feb 19, 2013; 08:21
Brad Lindsay
Re: using mod_rewrite to remove file extention