Displaying 20 results from an estimated 100000 matches similar to: ".htaccess ReWrite"
2008 Oct 06
8
.htaccess rewrite
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
2007 Feb 28
0
RoR&Apache - htaccess rewrite directories fail?
On my server I have a directory at the root, /rails/ which contains
other directories with rails projects. In my httpd.conf I have
RewriteEngine On
RewriteLog "logs/rewrite.log"
RewriteLogLevel 9
RewriteCond %{REQUEST_URI} !^/rails/([^/]+)/public/
RewriteRule ^/rails/([^/]+)/?(.*)$ /rails/$1/public/$2 [QSA,L]
So with a GET /rails/test/ you''d get sent to /rails/test/public/ and
2007 Dec 21
2
config Rails .htaccess
Hello, newbie here please help
I have developed my Rails site under www.mydomain.com/home
Now I want to map it to use www.mydomain.com, what should i change to
this .htaccess file
=============== Content of my .htaccess file under public directory
============
# General Apache options
AddHandler fastcgi-script .fcgi
AddHandler cgi-script .cgi
Options +FollowSymLinks +ExecCGI
# If you
2008 Jul 21
0
.htaccess exceptions
Hi I''m a .php coder trying to allow a Ruby on Rails website to access
some .php scripts. I notice everything get redirected with Ruby on Rails
in the .htaccess file.
How do I stop Rails from redirecting my .php scripts which would be in
another directory.
Cheers
(.htaccess is below)
# General Apache options
AddHandler fastcgi-script .fcgi
AddHandler cgi-script .cgi
Options
2009 Aug 18
1
httpd .htaccess rewrite for images
Hello,
I'm running httpd on a Centos 5.3 machine. I'm trying to use
.htaccess to disable direct linking to site images. I've got the following
rewrite rule, the domain is test.example.com which is at
/var/www/test.example.com under which is a directory called images.
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(test\.)?example.com/.*$ [NC]
2010 Dec 01
6
Mongrel, .htaccess, cpanel, rewrite, Mongrel::HttpParserError
I just installed my RoR application on my ISP''s server.
This is a Cpanel environment and it creates a .htaccess file:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^xyz.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.xyz.com$
RewriteRule ^(.*)$ "http\:\/\/127\.0\.0\.1\:12001\/$1" [P,L]
in a public_html directory. (I changed my domain name in the text above
to xyz because we are
2008 Jul 23
1
Rails Rewrite rule (on mod_rails)
Hello,
I''m running fine my application on the dev server with apache2 and
mod_rails, but on the production server I have a strange issue.. it
seems like something is wrong with httpd.conf of .htacces.. the dev
server is a DreamHost PS and I''m configuring the production one one
HostGator.
I have a public/users/ folder with member profile images and a users
controller..
2009 Jun 17
2
Using a cgi perl program?
I have a cgi/perl program that I want to use on the same server as my
RoR app and I keep getting:
The page you were looking for doesn''t exist.
You may have mistyped the address or the page may have moved.
I load the program to the cgi-bin directory in its own folder /cgi-bin/
fump/
In the /public folder of my app I have the following .htaccess file:
# General Apache options
2008 Jun 13
2
public/.htaccess missing from Rails 2.1?
I just started with rails and have been using rails 2.0.2 up until
today. I did a gem install of Rails 2.1 and I noticed that when I
created a new project with: rails -d mysql projectname, I don''t have
a .htaccess file any longer to tell Apache to execute the fcgi or cgi
scripts... Is this on purpose or did I do something wrong?
--~--~---------~--~----~------------~-------~--~----~
You
2007 Jul 17
3
.htaccess problems..... Using Drupal
Hi All;
I am trying out the web software from www.drupal.org and I have it
Installed to a point ok in my www.werren.net domains.
Every time I try to use the .htaccess file in the root directory
With even one command showing I get a server mis-config error on the site.
The default .htaccess is shown below
I use Cent OS 4.7 using the Blue Quartz installer from Nuonce Networks
2006 Sep 06
2
.htaccess in public and adding password protection
While my site is in development I wish to add basic password protection.
At the moment my .htaccess looks like this:
AuthName "Restricted Area"
AuthType Basic
AuthUserFile /home/httpd/mydomain.co.uk/.htpasswd
AuthGroupFile /dev/null
require valid-user
.htpasswd exists and has an entry, yet I do not get a password prompt?
Does Apache Auth work for dynamic resources or only static
2007 Nov 21
0
.htaccess configuration
hello,
i use shared hosting with apache and .htacces file for configuration.
.htaccess file is places in the rails project folder:
--------
RewriteEngine On
RewriteRule ^$ public/index.html [L]
RewriteCond %{REQUEST_URI} !^/project/public
RewriteRule ^(.*)$ public/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ public/dispatch.fcgi/$1 [QSA,L]
--------
Everything work fine
2009 Jan 18
1
URL rewrite to force 'www' and '.html'
For SEO, I need to force the URL to contain ‘www’ so my app always
appears in the browser as www.example.com and not ‘example.com’. I
also need the filename (ex. index.html) to appear completely, and not
be hidden.
Can someone give us some pointers on how to set this up? I understand
the first case involves .htaccess but I’m nervous about modifying that
without good guidance.
Thanks.
2009 Dec 10
3
.htaccess and ?
Hi,
I'm trying to write .htaccess Rewrite rules and it doesn't seem to
work for me:
Match the string between the domain and the question mark: ?
http://www.abc.com/blog:long-name-of-page?action=diff and I want to
redirect it to: http://www.abc.com/blog:long-name-of-page
Any suggestion?
Thanks
2006 Aug 13
1
Rewrite problem?
I''m not able to access anything in public, everything seems to be going
through the rails router. As a result, I can''t get to stylesheets or
javascript.
I''m not quite clear if this is a .htaccess problem, or a router problem.
I eliminated the "catchall" route, so the last route is
map.connect '':controller/:action/:id''
My .htaccess file
2006 Aug 13
3
Rewrite problem or routing issue?
I''m not able to access anything in public, everything seems to be going
through the rails router. As a result, I can''t get to stylesheets or
javascript.
I''m not quite clear if this is a .htaccess problem, or a router problem.
I eliminated the "catchall" route, so the last route is
map.connect '':controller/:action/:id''
My .htaccess file
2016 Aug 28
0
.htaccess file
On 2016-08-28, TE Dukes <tdukes at palmettoshopper.com> wrote:
>
> I'm just not following or understanding. The .htaccess file works but on a
> slow DSL, I don't want the hits.
What exactly is slow when you receive requests from remote clients that
you don't want? Are you actually seeing problems when clients make
requests and Apache has to read in your 2MB .htaccess
2005 Jul 14
0
htaccess authentication asks for MySQL table test.user_info
Hello.
For users interested in the MySQL authentication problem for SSL pages,
there is another way
to prevent mod_auth_mysql to do this mySQL authentication. This has been
reported by Brent:
In the /etc/httpd/conf/httpd.conf file, add the directive:
<Directory xxxxxx/
AuthMySQLEnable off
AllowOverride All
</Directory>
You can also add it to your .htaccess file.
Thanks
2009 May 01
2
.htaccess
I use the following .htaccess file to restrict access to certain web
folders to only my IP pool.
Options +Indexes
order allow,deny
allow from x.x.x.
Is there anyway to allow a user right in if there in that IP pool but
require a password if there not?
Matt
2008 Apr 24
0
.htaccess for script aliased directories
With the great assistance I got here I was able to get .htaccess to work on a centos 5.1 box running Apache 2.2.3 a few days ago.
One other question. I am trying to protect a sub dir within the web space of a domain that is serving site statistics of awstats generated pages. The path to the dir is /home/user1/www/awstats. When testing, I am able to get a username and password prompt for the