Rewrite

Hello,

i have write my own Blog now, and the sites ended with id. Thats not
good for
the visitors and the search engine so i think. Is there are a way that i
can
write the webpage Adress like blogdetail.html?id=1 in a title for
example.

blogdetail.html?id=1 -> www.mysite.com/whatismoney (as example)
blogdetail.html?id=2 -> www.mysite.com/thenextentry (as example)

I think i want use the Headline from the article.

Can i make this with nginx? Cam give me someone a example, because the
website
http://wiki.nginx.org/HttpRewriteModule i understand not correct or im
to long
at pc today.

Thanks for help.

Silvio

On Wed, Jun 1, 2011 at 10:07 AM, Silvio S. [email protected]
wrote:

Hello,

i have write my own Blog now, and the sites ended with id. Thats not good for
the visitors and the search engine so i think. Is there are a way that i can
write the webpage Adress like blogdetail.html?id=1 in a title for example.

blogdetail.html?id=1 -> www.mysite.com/whatismoney (as example)
blogdetail.html?id=2 -> www.mysite.com/thenextentry (as example)

This is usually handled by the application.

On Wed, 1 Jun 2011 10:14:38 +0700 Edho P Arief wrote:

This is usually handled by the application.

What for application? Im not use a application, i has write my own blog,
want not Wordpress, Typo, Contao or what ever. That is write by me self.

That is why i ask, i understand the rewrite rules not.

Silvio

On Wed, Jun 1, 2011 at 3:28 PM, Silvio S. [email protected]
wrote:

On Wed, 1 Jun 2011 10:14:38 +0700 Edho P Arief wrote:

This is usually handled by the application.

What for application? Im not use a application, i has write my own blog,
want not Wordpress, Typo, Contao or what ever. That is write by me self.

That is why i ask, i understand the rewrite rules not.

as long it’s not static html then it’s an application.

On Wed, 1 Jun 2011 15:45:57 +0700 Edho P Arief wrote:

as long it’s not static html then it’s an application.

Aha. So i can not use Rewrite Rules.

Silvio

On Wed, Jun 01, 2011 at 03:56:18PM +0700, Edho P Arief wrote:

/page/1 ===> /page.php?id=1

if it’s something seo-ish like this:

/my-cool-story ===> /page.php?id=1

then it must be handled by the application

Even it is as simple as the first example, I can not understand
WHY people relies on gobbledygook of rewrite rules instead of
using high level programming language like PHP.


Igor S.

On Wed, Jun 1, 2011 at 3:53 PM, Silvio S. [email protected]
wrote:

On Wed, 1 Jun 2011 15:45:57 +0700 Edho P Arief wrote:

as long it’s not static html then it’s an application.

Aha. So i can not use Rewrite Rules.

you can but it’ll be tedious unless you meant a simple mapping like
this:

/page/1 ===> /page.php?id=1

if it’s something seo-ish like this:

/my-cool-story ===> /page.php?id=1

then it must be handled by the application

Hello,

On Wed, 1 Jun 2011 15:56:18 +0700 Edho P Arief wrote:

you can but it’ll be tedious unless you meant a simple mapping like this:

/page/1 ===> /page.php?id=1

if it’s something seo-ish like this:

/my-cool-story ===> /page.php?id=1

then it must be handled by the application

Aha so it means. You mean i should this relized with PHP.

Regards
Silvio

Hello,

On Wed, 1 Jun 2011 13:00:31 +0400 Igor S. wrote:

Even it is as simple as the first example, I can not understand
WHY people relies on gobbledygook of rewrite rules instead of
using high level programming language like PHP.

Oh u be the the inventor of Nginx, this is an honor. Thanks for nginx,
im more friendly with it, as before. I read a lot of Maillinglists, im
so long use OpenSource Software but never has a dialog with a Inventor
of a project. I think its nice day today.

So want come back to what i want write to the subject:

I want be honestly, that blog, with comments, RSS Feed and the Secure
Points
was my first steps in PHP. Im happy that i could relized the “Project”
so.
More PHP Expirence i have not and so i not know how should it relized. I
know
it goes, i think its with location header. So i think, nginx has a
rewrite
Module, and it were easier as PHP.

Sure with PHP were better, because i can use the Mysql Table, is
automatic i
think, the nginx configuration i must write.

Regards
Silvio

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs