We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28376
    • 222 Posts
    I created a .htaccess with the following lines in it but the problem is when i change RewriteBase from / to

    /mydomain a Internal Server Error comes up when viewing the site. I am runing WAMP on a windows XP machine any ideas as to why this is happening. I also have the following in my httpd.config


    .htaccess
    Options +FollowSymlinks
    RewriteEngine On
    RewriteBase /mydomain
    
    # Fix Apache internal dummy connections from breaking [(site_url)] cache
    RewriteCond %{HTTP_USER_AGENT} ^.*internal\ dummy\ connection.*$ [NC]
    RewriteRule .* - [F,L]
    
    # Rewrite mydomain.com -> www.mydomain.com -- used with SEO Strict URLs plugin
    RewriteCond %{HTTP_HOST} .
    RewriteCond %{HTTP_HOST} !^www\.mydomain\.com [NC]
    RewriteRule (.*) http://www.mydomain.com/$1 [R=301,L]
    
    # Exclude /assets and /manager directories from rewrite rules
    RewriteRule ^(manager|assets) - [L]
    
    # For Friendly URLs
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php?q=$1 [L,QSA,NC]
    
    # Reduce server overhead by enabling output compression if supported.
    php_flag zlib.output_compression On
    php_value zlib.output_compression_level 5
    



    httpd.conf
    <Directory />
        Options FollowSymLinks
        AllowOverride all
    </Directory>
    
    <Directory "C:/inetpub/www/mydomain">
    	Options            Indexes FollowSymLinks
            AllowOverride      all
    </Directory>
    

      • 26016
      • 561 Posts
      I’m not a server guru at all, nor do I know WAMP, but I would suggest that you try...

      /mydomain/ instead of /mydomain

      ... with the extra slash.

      good luck, Dave
        MODx and Wordpress development
        Linux, PHP 5.2, MySQL 5.0, Evo 1.05, Revo 2.08-pl, Firefox 4
        • 28376
        • 222 Posts
        I figured it out. The problem was that I didn’t have this in my templates


        <base href="[(site_url)]"></base>