1. J

    SOLVED Need a little basic help with rewrite is a subdomain. There is an .htaccess file in the root for this subdomain I edited that file and just after the line RewriteEngine on I added the line RewriteRule ^test$ "https\:\/\/google\.com\" [R=301,L] I restarted apache and entered the following in my browser...
  2. V

    How to enable Rewrite engine module in C panel

    Dear team, how to enable rewrite engine module in Cpanel. I have to try to add RewriteEngine in the .htaccess file but still receiving a warning. Please refer attached screenshot. I will be waiting for your reply Thanks Vijay
  3. 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...
  4. 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...
  5. 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...
  6. 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} ^ [nc] RewriteRule ^(.*)$$1 [L,R=301] Last year, cPanel was upgraded on my server and it now "adds its...
  7. 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...
  8. 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...
  9. 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: to this: The first section is created by wordpress...
  10. 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?
  11. 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"...
  12. S

    Mod Rewrite expert, I need help

    I want to set a website where user can get Lets say my domain is and I already activated wild card setting into the httpd.conf config. What I want: 1. When accessed, the server will process 2. When...
  13. 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...
  14. 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
  15. 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/ was not...
  16. 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 is hosted on Cpanel server and is external website. 1). Subdomain successfully redirected to RewriteEngine on...
  17. 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 "" Thanks! Daniel
  18. K

    Dynamically rewrite mod_userdir URLs ( to

    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...
  19. 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...
  20. 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 -...