Feb 18, 2013; 18:15
Steve Piercy - Web Site Builder
Re: using mod rewrite to remove file extention
Here is one solution...
https://github.com/knop-project/knop/blob/master/knop8/INSTALL.md#web-server-configuration
...which was derived from Johan Sölve's presentation...
http://www.slideshare.net/macsolve/url-design-with-lasso
...which evolved further...
http://lasso.2283332.n4.nabble.com/URL-Design-and-periods-tp3146639p3146667.html
Alternatively you could use virtual URLs without define_atbegin.
http://lasso.2283332.n4.nabble.com/Virtual-URLs-without-define-atbegin-tt3155906.html
I went back and forth, and now use define_atbegin within Knop.
It's the easiest to manage, IMO.
--steve
On 2/18/13 at 7:18 PM, dabrams@apple.com pronounced:
>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>
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- --
Steve Piercy Web Site Builder
Soquel, CA
<web@StevePiercy.com> <http://www.StevePiercy.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>