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

Discussion in 'General Discussion' started by erobs, May 26, 2003.

  1. erobs

    erobs Well-Known Member

    Joined:
    Nov 24, 2002
    Messages:
    48
    Likes Received:
    0
    Trophy Points:
    156
    We are having a problem with mod_rewrite. It may be my lack of familarity of this module.


    We have one site with a dedicated IP that is using this in a .htaccess file:

    Options -Indexes
    DirectoryIndex index.php index.html

    RewriteEngine On


    RewriteCond %{REQUEST_URI} !^/*index.php
    RewriteCond %{REQUEST_URI} !^/*index_interface.html
    RewriteCond %{REQUEST_URI} !^/*robots.txt
    RewriteCond %{REQUEST_URI} !^/*webalizer
    RewriteCond %{REQUEST_URI} !^/*README
    RewriteCond %{REQUEST_URI} !^/*js
    RewriteCond %{REQUEST_URI} !^/*api
    RewriteCond %{REQUEST_URI} !^/*pot
    RewriteCond %{REQUEST_URI} !^/*svg
    RewriteCond %{REQUEST_URI} !^/*img
    RewriteCond %{REQUEST_URI} !^/*images
    RewriteCond %{REQUEST_URI} !^/*admin/
    RewriteCond %{REQUEST_URI} !^/*files
    RewriteCond %{REQUEST_URI} !^/*scripts
    RewriteCond %{REQUEST_URI} !^/*css
    RewriteCond %{REQUEST_URI} !^/*php/.*\.php
    RewriteCond %{REQUEST_URI} !.*\.xml
    RewriteCond %{REQUEST_URI} !.*\.gif
    RewriteCond %{REQUEST_URI} !.*\.js
    RewriteCond %{REQUEST_URI} !.*\.css

    RewriteRule ^/*(.+)\.html$ ./index.php?$1 [QSA]

    We have it on another site with the servers shared IP.

    Is there a problem with using mod_rewrite on a shared IP?

    Thanks,
    Rob

    cPanel.net Support Ticket Number:
     
    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