I wrote a .htaccess file:

It worked for me with a en.org copy on my computer running Apache2:

<ifModule mod_rewrite.c>
    RewriteEngine On

    RewriteRule ^(about(/[[:alnum:]]*)?|news|download|support|contribute|
contact|docs|index)/?$ p.php?p=$1&l=en

    RewriteRule ^news/([[:digit:]]*)$  p.php?p=news/show&l=en&news_id=$1

    RewriteRule ^$ p.php

</IfModule>

So I just modified the file p.php for include /style.css and not style.css

The current links yet work, but are also accessible in the new mode:

/p.php?p=contribute&l=en

and

/contribute

Go to the same page.

The same is valid for

/p.php?p=news/show&l=en&news_id=19

/news/19

I don't know if these rules are Ok, but they were just ideas. I'm not a 
mod_rewrite expert :-)

Em Seg 25 Jan 2010, às 23:59:18, Leandro Santiago escreveu:
> I think that the urls in Enlightenment website could be more "legible".
> For example, the news home's url is:
> http://enlightenment.org/p.php?p=news&l=en
> 
> But
> 
> http://enlightenment.org/news/
> 
> is much better
> 
> http://enlightenment.org/p.php?p=news/show&l=en&news_id=17
> 
> Could be:
> 
> http://enlightenment.org/news/show/17
> 
> About page (http://enlightenment.org/p.php?p=about&l=en)?
> 
> http://enlightenment.org/about
> 
> E.org uses an Apache Web Server, so isn't very dificulty to write rewrite
>  rules in .htacces file.
> 
> It's just a sugestion.
> 
> I know that e.org is under a "reconstruction", but the url aspect need be
> checked;
> 
> (I like enlightenment and sorry by my bad English :-) )
> 

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to