Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Same than here, but for lighttpd.

I have pictures on a path looking like this:

/0/1/2/3/4/01234/screenshots/1.jpg

The URL to access it looks like this:

/static/0/1/2/3/4/01234/screenshots/1.jpg

I'd like it to look like this:

/0/1/2/3/4/01234/a-desc-of-the-picture/screenshots/1.jpg

Or something similar. The goal is to have the keywords in the URL for SEO.

But would like to tell nginx to serve

/0/1/2/3/4/01234/screenshots/1.jpg

When he sees:

/0/1/2/3/4/01234/a-desc-of-the-picture/screenshots/1.jpg

I don't want it to redirect the user to the proper URL, I just want it to do the mapping internally.

Is it possible ? How can I achieve this ?

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.