guys even my problem is somewhat related to the same as currently hosted my application on bluehost which is running on port 12004. so when every i try to access my site "http:///www.mydomain.com" its redirect me to " http://mydomain.com:12004" so if some one guide me that will be very helpful thanks....
regards abhishek On Tue, Oct 7, 2008 at 8:00 AM, Sav <[EMAIL PROTECTED]> wrote: > > 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 -~----------~----~----~----~------~----~------~--~---

