# SEO Friendly Urls

**URL:** <https://www.ruby-forum.com/t/seo-friendly-urls/217524>\
**Category:** NGINX\
**Created:** [March 4, 2012, 2:31am UTC](https://www.ruby-forum.com/t/seo-friendly-urls/217524 "2012-03-04T02:31:14Z")\
**Posts on this page:** 5\
**Page:** 2

<div class="post-metadata">

**Author:** ![adam\_estes](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/f4b2a3/32.png) [@adam\_estes](https://www.ruby-forum.com/u/adam_estes)\
**Post date:** [March 4, 2012, 8:01am UTC](https://www.ruby-forum.com/t/seo-friendly-urls/217524/21 "2012-03-04T08:01:53Z")

</div>

That puts us back to how we where before you had me add that block 😛

---

<div class="post-metadata">

**Author:** ![adam\_estes](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/f4b2a3/32.png) [@adam\_estes](https://www.ruby-forum.com/u/adam_estes)\
**Post date:** [March 4, 2012, 1:08pm UTC](https://www.ruby-forum.com/t/seo-friendly-urls/217524/22 "2012-03-04T13:08:04Z")

</div>

2012/3/4 adam estes [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> That puts us back to how we where before you had me add that block 😛

Since the error came from nginx, seems like you didn’t reload the  
config properly.

---

<div class="post-metadata">

**Author:** ![adam\_estes](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/f4b2a3/32.png) [@adam\_estes](https://www.ruby-forum.com/u/adam_estes)\
**Post date:** [March 4, 2012, 2:14pm UTC](https://www.ruby-forum.com/t/seo-friendly-urls/217524/23 "2012-03-04T14:14:23Z")

</div>

On Sun, Mar 04, 2012 at 12:47:49AM -0500, adam estes wrote:

Hi there,

> [server { listen 80; server\_name xxxxxx - Pastebin.com](http://pastebin.com/3uz4tCmd)

If I’ve understood what you are trying to do, will

# === location ^~ /fg152 { root /usr/local/domain; index index.php index.html; try\_files $uri $uri/ /fg152/index.php; location = /fg152/index.php { include fastcgi.conf; fastcgi\_pass unix:/etc/phpcgi/php-cgi.socket; } }

fit the requirements?

You can probably move “root”, “index”, and “include” to server level,  
if they are common to other locations.

Be aware that this effectively _removes_ the /.ht and /.svn protection  
config for this location hierarchy, so you’ll want to either put them  
back in, or (better) not have readable files in the web space that you  
don’t want served.

And if you try to access /fg152a, you might be a bit surprised – but  
that can be adjusted later if necessary.

## f

Francis D. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![adam\_estes](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/f4b2a3/32.png) [@adam\_estes](https://www.ruby-forum.com/u/adam_estes)\
**Post date:** [March 4, 2012, 2:15pm UTC](https://www.ruby-forum.com/t/seo-friendly-urls/217524/24 "2012-03-04T14:15:00Z")

</div>

On Sunday 04 March 2012 10:17:03 adam estes wrote:

> 2012/03/04 01:15:30 [error] 7662#0: \*36 open()  
> “/home/sites/domain/FG152/index.php/cron/graburls/999182b003023a35c327db371  
> a74a85f” failed (2: No such file or directory), client: 71.3.129.216,  
> server: [domain.us](http://domain.us), request: “GET$  
> /FG152/index.php/cron/graburls/999182b003023a35c327db371a74a85f  
> HTTP/1.1”, host: “[domain.us](http://domain.us)”

Just for your note, FG152 doesn’t equal fg152.

wbr, Valentin V. Bartenev

---

<div class="post-metadata">

**Author:** ![adam\_estes](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/f4b2a3/32.png) [@adam\_estes](https://www.ruby-forum.com/u/adam_estes)\
**Post date:** [March 5, 2012, 3:57am UTC](https://www.ruby-forum.com/t/seo-friendly-urls/217524/25 "2012-03-05T03:57:33Z")

</div>

Now i feel kinda stupid. The project was named FG152 and the cron jobs  
where generated with that url. I changed this later because of too  
many issues with the pathing. I just didn’t remember to change the  
cron jobs 😛

[Previous page](https://www.ruby-forum.com/t/seo-friendly-urls/217524.md?page=1)
