Results 1 to 2 of 2

Thread: htaccess file

  1. #1
    Join Date
    Sep 2005
    Location
    UK
    Posts
    324

    htaccess file

    I'm having issues with my htaccess file.

    My file consists of the following:

    RewriteEngine On
    RewriteCond %{HTTP_HOST} !^mydomain.com$
    RewriteRule (.*) http://mydomain.com/$1 [R=301,L]
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ ?rewrite=$1 [QSA,L]

    Now, with this htaccess file, my whmcs system won't let you order. If you remove the htaccess file whmcs works properly HOWEVER my website doesn't work then as it uses actions.

    Anyone know how to help? I don't mind paying for assistance?
    WO Hostings - Reliable and Affordable UK Web Hosting.
    Family run business providing a personal customer service.
    Web hosting packages with dedicated account managers.

  2. #2
    Join Date
    May 2011
    Location
    Columbus, Ohio
    Posts
    270
    Here is the rewrite I use for my sites to kick non-www over to www. (modified here to do the opposite for what yours is trying to do):

    RewriteCond %{HTTP_HOST} !^domain.com$ [NC]
    RewriteRule ^(.*)$ http://domain.com$1 [R=301,L]


    Also the final rewrite, try it with the name of the script to execute:

    RewriteRule ^/(.*)$ /index.php?rewrite=$1 [L,QSA]

    Try these two changes to if they help.

    -Greg

Similar Threads

  1. What does this do in my .htaccess file?
    By build-a-host in forum Web Design and Content
    Replies: 1
    Last Post: 02-11-2011, 11:43 PM
  2. Please help me with htaccess file
    By italos in forum Web Hosting
    Replies: 8
    Last Post: 01-17-2011, 09:45 AM
  3. help with .htaccess file
    By CSCenter in forum Web Hosting
    Replies: 4
    Last Post: 08-03-2009, 10:54 PM
  4. .htaccess file [help]
    By 5need in forum Hosting Security and Technology
    Replies: 4
    Last Post: 06-20-2004, 04:03 PM
  5. .htaccess file
    By bobbybean in forum Programming Discussion
    Replies: 1
    Last Post: 05-06-2004, 12:24 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •