SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot
    Join Date
    Jul 2008
    Posts
    190
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    need help with .htaccess configuration

    Hi,
    I have a Hostpay application installed on one of my domains which has required a rewrite of .htaccess. The Hostpay system uses index.cgi as default page and then uses .rhtml templates. I have a number of subdomains on this domain too and currently have to type in mydomain.com/index.php instead of mydomain.com/, for example. I am also having problems with a contact page which appends code such as &fillall or &success (i.e. contact.php&success) to the web address, which no longer works correctly on this domain. I know this must be because of the .htaccess file but don't know what I can change within this file so that index.cgi and index.php will both work. Here is the current file:

    Code:
    <IfModule mod_ssl.c>
    	RewriteBase /thghosting.co.uk/
    </IfModule>
    <IfModule !mod_ssl.c>
    	RewriteBase /
    </IfModule>
    	RewriteEngine On
            RewriteRule ^([^.]*)$ index.cgi/$1 [L,NE]
    RewriteEngine On
    RewriteRule ^([^.]*)$ index.cgi/$1 [L]
    I anyone can shed any light on what I can change in this configuration I would be really grateful as I don't really understand this at the moment.

    Thanks,
    Russ

  2. #2
    Guru in training bronze trophy SoulScratch's Avatar
    Join Date
    Apr 2006
    Location
    Maryland
    Posts
    1,838
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    maybe try

    Code:
    [^a-zA-Z\.]
    instead of

    Code:
    [^.]
    Because special characters are also included for the dot, which means pretty much any kind of character..
    Cross browser css bugs

    Dan Schulz you will be missed


Bookmarks

Posting Permissions

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