The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    6
    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:
     
Loading...

Share This Page