rewrite

  1. C

    Rails App Rewrite not working?

    I have added a RoR app and have it setup properly (as far as I can tell), but when I try to use the created rewrite for the app, the browser tries to download the homepage as a file containing the HTML used the build the page, but if I disable my firewall and go to the direct URL for the app...
  2. I

    .htaccess rewrite rule giving 404 not found on live server

    Hi, I've created my first .htaccess file to create a folder from the query string e.g. - 'event-service-listings.php?category=events' gets changed to - 'event-service-listings/events/' It works perfectly on my localhost, but when I uploaded it to the dedicated server using a temp url -...
  3. S

    PHP5 cgi Suexec htaccess rewrite issue

    I am trying to get my website to run with php5 as a cgi abd Suexec enabled When I enable this however, certain .htaccess rules break and I cannot figure out why. These work currently with the PHP 5 handler set to dso Example of url http://sitename.com/ad/123-abcde/ rewrite rule...
  4. P

    WHM/cPanel/Server crashes with .htaccess rewrite rule

    Hi there, i hope someone out there can help me. I have a website with 3 domains parked on top of it. I have the following rules set up in my .htaccess file: RewriteCond %{HTTP_HOST} !^www.domain.co.uk$ RewriteRule (.*) http://www.domain.co.uk/$1 [R=301] As soon as i enter the address...
  5. J

    Rewrite Rules for all sites

    cPanel Community, I want to have http://www.domain-name.tld/mailman/listinfo redirected to http://domain-name.tld/mailman/listinfo (without the www.) I added some Rewrite Rules to the Post VirtualHost Include (/usr/local/apache/conf/includes/post_virtualhost_global.conf) using the cPanel...
  6. morissette

    pre_main_globals vs rewrite rules

    Is there anyway to use a users include file to overwrite a rewrite rule defined in pre_main_global.conf?
  7. E

    Creating rails rewrite results in 500 error

    I am trying to deploy a Rails app on a server running cPanel 11.25.0-C46156. For the sake of this example, let's say I've created a rails app with "test" as the app name and an application path of /home/myacct/rails_apps/test. The app works correctly when accessing it at...
  8. O

    Mod Rewrite Issue??? Please Help!

    so enabling mod_rewrite module for Apache is relativelly straightforward, it involves adding a few lines of configuration in the main apache configuration file (httpd.conf) which is currently located in /etc/httpd/conf/httpd.conf looking at this file I read the header at the top of it which...
  9. 8

    spam subject rewrite is gone !?!

    hi, in WHM, we were rewriting the email subject with ***SPAM [$spam_score]*** globally for all users And this was REALLY used by all our clients and us. But I cannot find this feature anymore in WHM. cPanel 11.25.0-S43473 - WHM 11.25.0 - X 3.9 Thanks for pointing out.
  10. B

    spamassassin can't rewrite subject in cpanel 11?

    I am using cpanel 11 and being told that I can't rewrite the subject of emails that are spam. Spam assassin IS adding info in the header like: X-Spam-Subject: [SPAM] test message X-Spam-Status: Yes, score=1002.4 X-Spam-Score: 10024 X-Spam-Bar...
  11. D

    rewrite rule for filenames with spaces

    I have a site which is setup for RoR. So there is a htaccess file which is rewritting requests to a mongrel process running on the server. The problem we are having right now is that filenames (images) with spaces in them are not being found, i.e. a 502 error is being returned for those files...
  12. H

    Rewrite Rule to change & to %26 in URL

    Hello Friends, Please help me get a Rewrite Rule to change & to %26 in URL. I have tried following scripts in .htaccess but was to no avail. RewriteCond METHOD GET|HEAD RewriteCond URL [^?]+&.* RewriteHeader X-Redirect-Amp: .* 1 RewriteRule ([^?]+)&(.*) $1%26$2 [NS,I] RewriteCond...
  13. K

    not able to create rewrite rules for ror

    Hi all, Is there any issue with creating rewrite rule for ROR application in cpanel? In my cpanel , after creating an application , under "create a rewrite " category, name of the application is not displaying? Why is it so? It was working till yesterday! Any idea? Please ..help...:(
  14. E

    Simple Mod Rewrite question

    I am trying to capture all of the url after the / for subsequent processing, but don't have much experience of mod rewrite or regexps! If I put this in the .htaccess on the folder I am dealing with (/somedir/): RewriteRule ^(.*)/?$ index.php?qs=$1 all I get in $1 is 'index.php', when I...
  15. kdoublei

    noob! help needed on mod rewrite

    im a complete noob at owning my own server. i tried to install a htaccess and i got this message: '[Tue Feb 20 17:01:12 2007] [alert] [client 24.208.187.191] /home/xxxxx/public_html/.htaccess: Invalid command 'RewriteRule', perhaps mis-spelled or defined by a module not included in the server...
  16. M

    Rewrite Mod

    Hey Guys, I've got a URL that I'm trying to rewrite.... www.mydomain.com/blog.php/?cat=1 I want that to be rewritten using the Apache rewrite mod to www.mydomain.com/blog.php?cat=1 Any ideas?
  17. N

    [exim] subject rewrite with exim.conf

    Hi Is it possible to rewrite e-mail subject by some magican directives put in exim.conf? I have to rewrite subject of every mail that is delivered to my server, is it possible??? Thank you.
  18. F

    Rewrite rule?

    Is it possible to somehow set rewrite rule by cpanel? For example (as it would be in apache.conf):
  19. I

    rewrite exploit - any upgrade to 1.3.37 ?

    Someone knows about this? http://www.kb.cert.org/vuls/id/395412 Is red hat with apache 1.3.36 vulnerable? there are some update to 1.3.37? thanks.
  20. Z

    PHPsuexec and Rewrite Rules

    I just enabled PHPSuexec and sites using rewrite rules to give mambo/joomla search engine friendly urls no longer work. ## # @version $Id: htaccess.txt 1570 2005-12-29 05:53:33Z eddieajau $ # @package Joomla # @copyright Copyright (C) 2005 Open Source Matters. All rights reserved. #...