rewrite

  1. J

    Exim Header Fields and Rewriting

    In the docs on customizing the Exim System Filter File How to Customize the Exim System Filter File | cPanel & WHM Documentation there is a reference to "$_from:" which would be the sender's address ("From" in the Exim docs.) Where is a complete list of all header field names available for...
  2. S

    Redirect Rewrite Code

    Is the .htaccess code added to an account via the Redirect (cPanel -> Domains -> Redirects) page correct? It looks like the code added to the .htaccess file is: RewriteCond %{HTTP_HOST} ^.*$ RewriteRule ^/?$ "http\:\/\/%domain%\/%path%" [R=301,L] But shouldn't this be: RewriteCond...
  3. K

    enabling tmp links and .htaccess rewrite rules

    hello guys I have just purchased a VPS as I am a Freelance Website Developer and plan to grow in the next year or so; hence the upgrade as I need stability. I use a bespoke PHP content management system which uses several Rewrite Rules via .htaccess and since migration I cannot get the...
  4. S

    htaccess Rewrite Questions

    Thank you in advance. Here is my question: I placed the following 2 lines of code in my .htaccess file to redirect non-WWW to WWW: RewriteCond %{http_host} ^example.com [nc] RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301] Last year, cPanel was upgraded on my server and it now "adds its...
  5. J

    Rewrite Rule changing compression headers?

    I'm a customer, not a webhost. But I'm posting here because my web host is being adamant about his server not being the problem...and this issue being my problem. So here is my question. Are there security features in cPanel or Apache that will strip off Accept-Encoding headers for urls that...
  6. V

    Enabling Temporary Links and .htaccess Rewrite Rules

    Good afternoon everyone, I have just purchased a VPS as I am a Freelance Website Developer and plan to grow in the next year or so; hence the upgrade as I need stability. I use a bespoke PHP content management system which uses several Rewrite Rules via .htaccess and since migration I cannot...
  7. M

    Rewrite URL in htaccess to hide certain characters

    Hi guys I have a problem and also lack the understanding to put this rewrite rule in place. I only need to remove these characters from any URL on our website ?rid= from this: example.co.uk/coffee/?rid=A611F4 to this: example.co.uk/coffee/A611F4 The first section is created by wordpress...
  8. J

    SOLVED Mod rewrite (.htaccess) not working anymore

    After all updates last night and the latest builds my mod rewrite in Joomla using .htaccess don't work anymore, how can this be possible?
  9. Arvy

    FormMail & Exim rewrite - lost contact email

    Hi there, if I let the Exim option "Experimental: Rewrite From: header to match actual sender" activated, FormMail lost the "email" field and message came with the server's default email. <form action="/cgi-sys/FormMail.cgi" method="post"> ... <input name="email" maxlength="255" size="42"...
  10. S

    Mod Rewrite expert, I need help

    I want to set a website where user can get theirname.mydomain.com. Lets say my domain is domain.com and I already activated wild card setting into the httpd.conf config. What I want: 1. When abc.domain.com accessed, the server will process domain.com/index.php?user=abc 2. When...
  11. T

    Setup Rewrite Rules for different websites

    Hi all! Complete newb here so bare with me. We just decided to move our websites from our own dedicated servers to a new colo where we are now on a VPS. I am just about finished setting up our first website, but need to setup the rewrite rules we had previously. We have multiple sites and I...
  12. D

    how do i get mod rewrite working

    so how do i get mod rewrite working, because its not. and the solutions from google are to vague for me. the module is loaded in apache, but the .htaccess files arent doing anything
  13. R

    .htaccess rewrite rule error

    Hi, I added RewriteRule ^(.*)\/(\?.*)?$ $1$2 [R=301,L] to delete the last / of an URL, but now my website is messed up, how can I undo this change? I deleted the line, but still when i try to push the link I get: The requested URL /home/nicolke113/domains/domain.com/public_html/About was not...
  14. I

    Rewrite rule not working.

    Hello, I have created rewrite rule from cpanel but one url is working second giving me cpanel default apache page. Web site abc.com is hosted on Cpanel server and xyz.com is external website. 1). Subdomain cp.abc.com successfully redirected to http://cp.xyz.com RewriteEngine on...
  15. I

    htaccess question - rewrite pdf to html (with one condition)

    Hi. I have what seems like a "simple" .htaccess question, but I can't figure it out for the life of me: How do I change the suffix (301 redirect) of all pages ending in .pdf to .html - except when URL begins with "www.mydomain.com/pdf/" Thanks! Daniel
  16. K

    Dynamically rewrite mod_userdir URLs (stagingdomain.com/~username) to username.stagingdomain.com

    I run a small web host with automatic installation of Wordpress at signup. When a client signs up, Wordpress is automatically installed using a script running after CPanel has created the user. All the customers get their own .com/.net/.org domain at signup, however since domain propagation...
  17. 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...
  18. 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 -...
  19. 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...
  20. 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...