RoR rewrites in cPanel not working

Archive

Mo Tu We Th Fr Sa Su
12345
6789101112
13141516171819
20212223242526
272829


Poll: Social Media

Which social media you used ?

  • email Email to a friend
  • print Print version
  • Add to your del.icio.us del.icio.us
  • Digg this story Digg this
  • Facebook

Did you enjoy this article?

(total 1 votes)
Adjust font size: Decrease font Enlarge font
RoR rewrites in cPanel not working We are currently working with cPanel to correct a bug that is not creating rewrites properly when created through the cPanel interface.

As soon as cPanel fixes this bug we will update the servers.  Until that time, you can edit the .htaccess file and add the following so your application will redirect properly to it's assigned port.

For a primary domain:

Replace yourdomain.com with your domain name and the "XXXXX" with the port number listed in cPanel.

RewriteEngine on

RewriteCond %{HTTP_HOST} ^yourdomain.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.yourdomain.com$
RewriteRule ^(.*)$ http://127.0.0.1:XXXXX%{REQUEST_URI} [P,QSA,L]

For a subdomain:

Replace yourdomain.com with your domain name and the "XXXXX" with the port number listed in cPanel.

RewriteEngine on
RewriteCond %{HTTP_HOST} ^cms.e-do.com.au$
RewriteRule ^(.*)$ http://127.0.0.1:12001%{REQUEST_URI} [P,QSA,L]
blog comments powered by Disqus
  • email Email to a friend
  • print Print version
  • Add to your del.icio.us del.icio.us
  • Digg this story Digg this
  • Facebook

Semua yang ada pada website ini adalah ilmu, bacaan dan opini pribadi dalam journal hidup kami di Internet.
© 2000-2010 Gembels.com by dono a.k.a Widhe