Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Mod_Rewrite rules not working

Discussion in 'EasyApache' started by NightStorm, Jul 5, 2016.

Tags:
  1. NightStorm

    NightStorm Well-Known Member

    Joined:
    Jul 28, 2003
    Messages:
    286
    Likes Received:
    4
    Trophy Points:
    168
    cPanel Access Level:
    Root Administrator
    Twitter:
    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 created in cPanel directly. Ideas?
    Here is the profile that EA4 is using:

    Code:
        ea-apache24
        ea-apache24-config
        ea-apache24-config-runtime
        ea-apache24-devel
        ea-apache24-mod_auth_digest
        ea-apache24-mod_authn_anon
        ea-apache24-mod_authn_dbd
        ea-apache24-mod_authn_dbm
        ea-apache24-mod_authnz_ldap
        ea-apache24-mod_authz_dbm
        ea-apache24-mod_bwlimited
        ea-apache24-mod_cache
        ea-apache24-mod_cache_disk
        ea-apache24-mod_cgi
        ea-apache24-mod_charset_lite
        ea-apache24-mod_dav
        ea-apache24-mod_dav_fs
        ea-apache24-mod_dav_lock
        ea-apache24-mod_dbd
        ea-apache24-mod_deflate
        ea-apache24-mod_expires
        ea-apache24-mod_file_cache
        ea-apache24-mod_headers
        ea-apache24-mod_imagemap
        ea-apache24-mod_ldap
        ea-apache24-mod_log_forensic
        ea-apache24-mod_mime_magic
        ea-apache24-mod_mpm_prefork
        ea-apache24-mod_proxy
        ea-apache24-mod_proxy_http
        ea-apache24-mod_remoteip
        ea-apache24-mod_security2
        ea-apache24-mod_speling
        ea-apache24-mod_ssl
        ea-apache24-mod_suexec
        ea-apache24-mod_suphp
        ea-apache24-mod_unique_id
        ea-apache24-mod_usertrack
        ea-apache24-mod_vhost_alias
        ea-apache24-tools
        ea-apr
        ea-apr-devel
        ea-apr-util
        ea-apr-util-devel
        ea-apr-util-ldap
        ea-cpanel-tools
        ea-documentroot
        ea-libmcrypt
        ea-php-cli
        ea-php54-libc-client
        ea-php54-php-bcmath
        ea-php54-php-bz2
        ea-php54-php-calendar
        ea-php54-php-cli
        ea-php54-php-common
        ea-php54-php-curl
        ea-php54-php-enchant
        ea-php54-php-exif
        ea-php54-php-ftp
        ea-php54-php-gd
        ea-php54-php-gettext
        ea-php54-php-iconv
        ea-php54-php-imap
        ea-php54-php-intl
        ea-php54-php-mbstring
        ea-php54-php-mcrypt
        ea-php54-php-mysqlnd
        ea-php54-php-pdo
        ea-php54-php-pgsql
        ea-php54-php-pspell
        ea-php54-php-snmp
        ea-php54-php-soap
        ea-php54-php-sockets
        ea-php54-php-tidy
        ea-php54-php-xml
        ea-php54-php-xmlrpc
        ea-php54-php-zip
        ea-php54-runtime
        ea-php55
        ea-php55-libc-client
        ea-php55-pear
        ea-php55-php-bcmath
        ea-php55-php-bz2
        ea-php55-php-calendar
        ea-php55-php-cli
        ea-php55-php-common
        ea-php55-php-curl
        ea-php55-php-devel
        ea-php55-php-enchant
        ea-php55-php-exif
        ea-php55-php-fileinfo
        ea-php55-php-ftp
        ea-php55-php-gd
        ea-php55-php-gettext
        ea-php55-php-iconv
        ea-php55-php-imap
        ea-php55-php-intl
        ea-php55-php-ioncube5
        ea-php55-php-mbstring
        ea-php55-php-mcrypt
        ea-php55-php-mysqlnd
        ea-php55-php-opcache
        ea-php55-php-pdo
        ea-php55-php-pgsql
        ea-php55-php-posix
        ea-php55-php-pspell
        ea-php55-php-snmp
        ea-php55-php-soap
        ea-php55-php-sockets
        ea-php55-php-tidy
        ea-php55-php-xml
        ea-php55-php-xmlrpc
        ea-php55-php-zip
        ea-php55-runtime
        ea-php56-libc-client
        ea-php56-php-bcmath
        ea-php56-php-bz2
        ea-php56-php-calendar
        ea-php56-php-cli
        ea-php56-php-common
        ea-php56-php-curl
        ea-php56-php-enchant
        ea-php56-php-exif
        ea-php56-php-ftp
        ea-php56-php-gd
        ea-php56-php-gettext
        ea-php56-php-iconv
        ea-php56-php-imap
        ea-php56-php-intl
        ea-php56-php-mbstring
        ea-php56-php-mcrypt
        ea-php56-php-mysqlnd
        ea-php56-php-pdo
        ea-php56-php-pgsql
        ea-php56-php-pspell
        ea-php56-php-snmp
        ea-php56-php-soap
        ea-php56-php-sockets
        ea-php56-php-tidy
        ea-php56-php-xml
        ea-php56-php-xmlrpc
        ea-php56-php-zip
        ea-php56-runtime
        ea-profiles-cpanel
     
    #1 NightStorm, Jul 5, 2016
    Last edited by a moderator: Jul 11, 2016
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,726
    Likes Received:
    1,883
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    Could you provide a specific example of a rewrite rule that's not working?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. NightStorm

    NightStorm Well-Known Member

    Joined:
    Jul 28, 2003
    Messages:
    286
    Likes Received:
    4
    Trophy Points:
    168
    cPanel Access Level:
    Root Administrator
    Twitter:
    Sorry, apparently the forum failed to notify me of a reply.

    Code:
    With mod_rewrite
    RewriteEngine on
    RewriteRule   ^/(.+)  http://newdomain/$1  [R,L]
     
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,726
    Likes Received:
    1,883
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    Would you mind opening a support ticket using the link in my signature so we can take a closer look? You can post the ticket number here so we can update this thread with the outcome.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice