That didn't work (and appears to be backwards).  I tried the following
w/ no luck...

RewriteRule ^\/?spot=(.*)$ /locations/$1
RewriteRule ^\/?spot=(.*)$ /locations/$1 [R=301,L]
RewriteRule /?spot=(.*)$ /locations/$1 [R=301,L]

This is also for a subdomain under Rails...

http://m.domain.com/?spot=8888
to
http://m.domain.com/locations/8888



On Oct 6, 5:34 pm, Gerson Minichiello <[EMAIL PROTECTED]>
wrote:
> Hi,
>
> Try this .htaccess file:
>
> RewriteEngine On
> RewriteCond %{SCRIPT_FILENAME} !-f
> RewriteCond %{SCRIPT_FILENAME} !-d
> RewriteRule ^\/locations\/(.*)$ /?spot=$1
>
> On Oct 6, 8:28 pm, Sav <[EMAIL PROTECTED]> wrote:
>
> > can someone help me with an .htaccess rewrite?
>
> > i'm trying to convert all requests to "/?spot=8888" to be "/locations/
> > 888".
>
> > thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to