Welcome! Log In Create A New Profile

Advanced

rewrite url seo

Joel Azemar
May 05, 2010 05:20AM
I want to improve my urls for seo

I'm with rails attachment_fu

I want change this url

/attachments/000/234/my_great_image.jpg

like that :

/my_keywords_seo/images/my_great_image.jpg

I tried it

location ~* ^/attachments { rewrite
^/attachments/([0-9]+)/([0-9]+)/(.*)$ /my_keywords_seo/images/$3 last; }

the url is rewritten, however, the resource is not found !

However i read in http://wiki.nginx.org/NginxHttpRewriteModule

Flags can be any of the following:
last - completes processing of rewrite directives, after which searches
for corresponding URI and location

I don't understand ...

Somebody can help me ?
--
Posted via http://www.ruby-forum.com/.

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

rewrite url seo

Joel Azemar May 05, 2010 05:20AM

Re: rewrite url seo

Joel Azemar May 05, 2010 08:32AM

Re: rewrite url seo

Joel Azemar May 06, 2010 01:18PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 151
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready