2009-02-01 02:44 |
peter
Peter Sommerfeld < <peter at rubrica.at>
Hi!
The generation of nice URLs as described in the
installation instructions replaces sputnik.cgi
by an arbitarty word: "wiki","en" or something
like this.
I'd like to get rid of these words alltogether
to produce real clean URLs,for instance
http://mydomain.at/about
This seems to be possible because
http://wowprogramming.com/ does it.
My own attempts to achieve that failed because
I'm not familiar enough with Apache rewrite.
Can someone give me detailed instructions
how to achieve that please.
Peter
_______________________________________________
Sputnik-list mailing list
Sputnik-list@lists.luaforge.net
http://lists.luaforge.net/cgi-bin/mailman/listinfo/sputnik-list
2009-02-01 02:44 |
jnwhiteh
Jim Whitehead II < <jnwhiteh at gmail.com>
On Sat, Jan 31, 2009 at 9:55 PM, Peter Sommerfeld <peter@rubrica.at> wrote: > Hi! > > The generation of nice URLs as described in the > installation instructions replaces sputnik.cgi > by an arbitarty word: "wiki","en" or something > like this. > > I'd like to get rid of these words alltogether > to produce real clean URLs,for instance > http://mydomain.at/about > This seems to be possible because > http://wowprogramming.com/ does it. > > My own attempts to achieve that failed because > I'm not familiar enough with Apache rewrite. > Can someone give me detailed instructions > how to achieve that please. It's relatively simple, I use the following: <IfModule mod_rewrite.c> RewriteEngine on RewriteRule ^/?$ /book.cgi?p=Home_Page [L,QSA] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ /book.cgi?p=$1 [L,QSA] </IfModule> Obviously the application is called book.cgi. I just redirect the root page /book.cgi?p=Home_Page. The next two lines say to ignore anything that resolves to a file or a directory. The final line simply takes anything after the first / and passes it as a parameter to book.cgi. Hope that helps. - Jim _______________________________________________ Sputnik-list mailing list Sputnik-list@lists.luaforge.net http://lists.luaforge.net/cgi-bin/mailman/listinfo/sputnik-list
2009-02-01 02:44 |
peter
Peter Sommerfeld < <peter at rubrica.at>
Jim Whitehead II schrieb:
> It's relatively simple, I use the following:
>
> <IfModule mod_rewrite.c>
> RewriteEngine on
> RewriteRule ^/?$ /book.cgi?p=Home_Page [L,QSA]
> RewriteCond %{REQUEST_FILENAME} !-f
> RewriteCond %{REQUEST_FILENAME} !-d
> RewriteRule ^(.*)$ /book.cgi?p=$1 [L,QSA]
> </IfModule>
Jim,
seems to work so far for normal pages. Have
a look at
http://rubrica.webfactional.com/
Unfortuanatly special pages, for instance
http://rubrica.webfactional.com/sputnik/config
do not display correct and I'm not able to edit
it if logged in as Admin.
I've set NICE_URL in sputnik/config to "". Here
is my htaccess.
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^/?$ /sputnik.cgi?p=index [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /sputnik.cgi?p=$1 [L,QSA]
</IfModule>
Do you have any advice?
tia
Peter
_______________________________________________
Sputnik-list mailing list
Sputnik-list@lists.luaforge.net
http://lists.luaforge.net/cgi-bin/mailman/listinfo/sputnik-list
2009-02-01 02:44 |
jnwhiteh
Jim Whitehead II < <jnwhiteh at gmail.com>
Did you change BASE_URL in your sputnik config? On Sat, Jan 31, 2009 at 10:43 PM, Peter Sommerfeld <peter@rubrica.at> wrote: > Jim Whitehead II schrieb: >> It's relatively simple, I use the following: >> >> <IfModule mod_rewrite.c> >> RewriteEngine on >> RewriteRule ^/?$ /book.cgi?p=Home_Page [L,QSA] >> RewriteCond %{REQUEST_FILENAME} !-f >> RewriteCond %{REQUEST_FILENAME} !-d >> RewriteRule ^(.*)$ /book.cgi?p=$1 [L,QSA] >> </IfModule> > > Jim, > > seems to work so far for normal pages. Have > a look at > http://rubrica.webfactional.com/ > > Unfortuanatly special pages, for instance > > http://rubrica.webfactional.com/sputnik/config > > do not display correct and I'm not able to edit > it if logged in as Admin. > > I've set NICE_URL in sputnik/config to "". Here > is my htaccess. > > <IfModule mod_rewrite.c> > RewriteEngine on > RewriteRule ^/?$ /sputnik.cgi?p=index [L,QSA] > RewriteCond %{REQUEST_FILENAME} !-f > RewriteCond %{REQUEST_FILENAME} !-d > RewriteRule ^(.*)$ /sputnik.cgi?p=$1 [L,QSA] > </IfModule> > > Do you have any advice? > > tia > > Peter > > > > _______________________________________________ Sputnik-list mailing list Sputnik-list@lists.luaforge.net http://lists.luaforge.net/cgi-bin/mailman/listinfo/sputnik-list
2009-02-01 02:44 |
peter
Peter Sommerfeld < <peter at rubrica.at>
Jim Whitehead II schrieb:
> Did you change BASE_URL in your sputnik config?
Do you mean in sputnik.cgi ? No, I did not.
I think I have to change HOME_PAGE_URL in sputnik/conf
too. But to do so I have to reset sputnik first.
It is midneight here and I will continue tomorrow...
Peter
_______________________________________________
Sputnik-list mailing list
Sputnik-list@lists.luaforge.net
http://lists.luaforge.net/cgi-bin/mailman/listinfo/sputnik-list
2009-02-01 02:44 |
yuri
Yuri Takhteyev < <yuri at sims.berkeley.edu>
> I've set NICE_URL in sputnik/config to "". Here Your NICE_URL should be "/". Your BASE_URL should still be "/sputnik.cgi". Your HOME_PAGE_URL should be "/", but this is less important. This just makes sure that links to "index" and the logo at the top will just point to http://rubrica.webfactional.com/ and not to http://rubrica.webfactional.com/index or http://rubrica.webfactional.com/sputnik.cgi?p=index. > <IfModule mod_rewrite.c> > RewriteEngine on > RewriteRule ^/?$ /sputnik.cgi?p=index [L,QSA] > RewriteCond %{REQUEST_FILENAME} !-f > RewriteCond %{REQUEST_FILENAME} !-d > RewriteRule ^(.*)$ /sputnik.cgi?p=$1 [L,QSA] > </IfModule> Looks about right. - yuri -- http://spu.tnik.org/ _______________________________________________ Sputnik-list mailing list Sputnik-list@lists.luaforge.net http://lists.luaforge.net/cgi-bin/mailman/listinfo/sputnik-list
2009-02-01 02:44 |
peter
Peter Sommerfeld < <peter at rubrica.at>
Jim & Yuri, thanks a lot, works perfect now! Continue digging ... Peter _______________________________________________ Sputnik-list mailing list Sputnik-list@lists.luaforge.net http://lists.luaforge.net/cgi-bin/mailman/listinfo/sputnik-list