modrewrite

  1. J

    all subdomains/Subfolders are getting redirected

    Hi, I have a website on cPanel platform. For festive days I redirect my main domain (www.example.com) to festive folders (www.example.com/festives). Now I also have a WordPress blog on my domain (www.example.com/blog). The problem is this blog is also getting redirected to festive page, which I...
  2. O

    cPanel Redirect rule escape question

    When user creates an add-on domain, and redirects it in cPanel, you write the following to .htaccess: RewriteCond %{HTTP_HOST} ^mydomain\.tld$ [OR] RewriteCond %{HTTP_HOST} ^www\.mydomain\.tld$ RewriteRule ^/?$ "https\:\/\/www\.myotherdomain\.tld\/company\/about\-company\-information\/"...
  3. W

    Enable mod_rewrite module?

    - Removed - how can i enable mod_rewrite module in apache...i am having issue with my prestashop module...
  4. P

    HTTP to HTTPS redirects for Drupal Multisite Setup

    Hi, I have a Drupal 7 multisite installation in a cPanel account, currently serving 3 domains. I have SSL certificates installed and working. However I need to ensure that all HTTP traffic is redirected to HTTPS for all domains. Since Drupal use a single .htaccess file, I'm struggling with how...
  5. C

    htaccess - exlude another Domain

    Hello! Let me explain my problem.Nobody can answer this,and now im here :) 1x Main-Domain (SSL) public_html/FILES 1x Addon-Domain (SSL) public_html/DOMAIN.COM <(Files inside) The Main-Domain have one .htaccess to force ssl - this works here are no problems. But all non SSL visitors...
  6. R

    Enable mod_write debug logging

    As of Apache 2.4, we can no longer enable mod_rewrite logging in .htaccess. Now requires RewriteLogLevel specified in virtual host configuration. So I've followed the guides and added the following file containing "RewriteLogLevel 3"...
  7. ronaldst

    Internal Server Error on subdomains

    On one account I am getting Internal Server Error on 2 (of 5) subdomains. My Apache error log shows the following: [Sun Apr 23 04:19:17.841427 2017] [core:error] [pid 29822] [client 12.12.123.123:57197] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration...
  8. S

    Enable Apache mod_rewrite question

    can you please tell me how enable Apache mod_rewrite using whm or cpanel or ssh please i need to active for my website and i am using whm cpanel i also uplaod the screenshot please take a look and help me thank you
  9. S

    SOLVED Help with rewrite rule for subdirectories

    Hello, I posted this under Security because people are able to access some directories I don't want them accessing, however, it might fit under a better topic, I just couldn't find one that seemed to match. Anyway, I have manually set up sub-domains, like cpcalendars.mydomain.com, and whenever...
  10. T

    force https for a given website and not all hosted accounts

    Hello, I host many websites using WHM/CPanel and for ONE of them, I would like to force my visitors to use HTTPS instead of HTTP. Of course, I have already installed a SSL certificate and I can perfectly see my website using https://subdomain.mydomain.com. Is there a way to force HTTPS on ONE...
  11. hrace009

    .htaccess overide all subdomain folder

    Hello, I have main domain (DOMAIN.LTD) root directory at /home/user/public_html/ and sub domain (SUB.DOMAIN.LTD) root directory at /home/user/public_html/sub.domain.ltd/ and from WHM, i force it to use public_html as document root. at the main domain, i have .htaccess like bellow: Options...
  12. P

    redirect without htaccess?

    Hello, I want to redirect 1. www to non-www 2. http to https but without htaccess, in apache config only. I know it's possible, how should I do it properly? Reasons: I have certificate for non-www only and I want better performance. Thank you.
  13. P

    mod_rewrite not enabled

    Hello. How do I enable mod_rewrite? [root@cpanel ~]# httpd -l|grep rewrite [root@cpanel ~]# It looks to me it's not enabled, and I need some assistance. The reason for why I'm asking is this: public_html/.htaccess: </IfModule>IndexOptions without matching <IfModule>IndexOptions section
  14. sehh

    Request exceeded the limit of 10 internal redirects

    Hello everyone, I've had this issue in the past with EA3 but I stumbled on it again with EA4. All my servers showed a considerable amount of internal redirect errors, in the /etc/apache2/logs/error_log file. The error looks like: AH00124: Request exceeded the limit of 10 internal redirects...
  15. D

    Visitors strange urls

    When i go to Metrics/Visitors in cpanel I see lots of strange urls that do not point to known urls of the website. Them seem to be pointing to spammy type websites. I have done a full virus scan and nothing shows, Can anyone shine some light? Here is an example.. - Removed - and a screenshot...
  16. N

    Mod_Rewrite rules not working

    Well, it helps to show that mod_rewrite is loaded... but doesn't help the next problem I am apparently running into (I was hoping that was the issue, seems not though). It would appear that Apache is ignoring mod_rewrite redirect rules in .htaccess... this would include redirects that are...
  17. N

    mod_rewrite with EA4

    So, am I completely missing something, or has mod_rewrite gone missing with the latest EasyApache? The option isn't coming up in the EA4 compile list, and its also not coming up in the server output. httpd -l|grep rewrite root@newserver [/]# httpd -v Server version: Apache/2.4.20 (cPanel)...
  18. R

    mod_rewrite - editing httpd.conf or adding to htaccess

    When adding the lines RewriteEngine On Options FollowSymLinks to a .htaccess placed in the root of a web script claiming to use it for permalinks, the interface tells me it does not find the mod_rewrite engine activated. When trying to get to the httpd.conf to enable it that way, I do not...
  19. M

    FrontPage Extensions & ModRewrite

    I have a cpanel server which I have a bit of a problem with... I need to use frontpage extensions and mod_rewrite together however the default "Install/Remove/Reinstall" extensions options writes a default .htaccess file which is missing the Options +FollowSymLinks as the last line in it...