0
Welcome Guest! Login
0 items Join Now

rename .htaccess and site internal error

    • xur82's Avatar
    • xur82
    • Rocketeer
    • Posts: 86
    • Thanks: 2

    rename .htaccess and site internal error

    Posted 12 years 8 months ago
    • After renaming htaccess.txt to .htaccess and then clicking URL rewriting and save, the browser returns a standard Internal server error. Changing .htaccess back sees it all ok again.
      Yes, it is Apache server
      I've added the live site address to configuration.php

      thanks
    • prim's Avatar
    • prim
    • Preeminent Rocketeer
    • Posts: 17290
    • Thanks: 217

    Re: rename .htaccess and site internal error

    Posted 12 years 8 months ago
    • Check one of these links: www.google.com/search?q=internal+server+...-aurora&channel=fflb

      It's hard to help without seeing the full server error message and .htaccess.
    • Please reply with a direct link to the issue & create a new thread for each new issue.

      A template is only as good as the content that goes into it ;) - DanG
    • xur82's Avatar
    • xur82
    • Rocketeer
    • Posts: 86
    • Thanks: 2

    Re: rename .htaccess and site internal error

    Posted 12 years 8 months ago
    • would you mind having a look, I've tried looking into this with the search you gave me but not got anywhere. The .htaccess is the untouched htaccess.txt (renamed) that I downloaded with the template as a complete roketlauncher install.

      www.metechmultimedia.com

      I can give you access if required OK..

      How do I securely send you ftp and admin PWd's?

      cheers
    • prim's Avatar
    • prim
    • Preeminent Rocketeer
    • Posts: 17290
    • Thanks: 217

    Re: rename .htaccess and site internal error

    Posted 12 years 8 months ago
    • Click on the PM button below my avatar.
    • Please reply with a direct link to the issue & create a new thread for each new issue.

      A template is only as good as the content that goes into it ;) - DanG
    • Roojai's Avatar
    • Roojai
    • Rocketeer
    • Posts: 81
    • Thanks: 7

    Re: rename .htaccess and site internal error

    Posted 12 years 8 months ago
    • I had the same problem, but then I looked in the htaccess.txt file and found the following:

      # The line just below this section: 'Options +FollowSymLinks' may cause problems
      # with some server configurations. It is required for use of mod_rewrite, but may already
      # be set by your server administrator in a way that dissallows changing it in
      # your .htaccess file. If using it causes your server to error out, comment it out (add # to
      # beginning of line), reload your site in your browser and test your sef url's. If they work,
      # it has been set by your server administrator and you do not need it set here.

      Once I commented out the line below this all was fine
    • xur82's Avatar
    • xur82
    • Rocketeer
    • Posts: 86
    • Thanks: 2

    Re: rename .htaccess and site internal error

    Posted 12 years 7 months ago
    • Roojai wrote:
      I had the same problem, but then I looked in the htaccess.txt file and found the following:

      # The line just below this section: 'Options +FollowSymLinks' may cause problems
      # with some server configurations. It is required for use of mod_rewrite, but may already
      # be set by your server administrator in a way that dissallows changing it in
      # your .htaccess file. If using it causes your server to error out, comment it out (add # to
      # beginning of line), reload your site in your browser and test your sef url's. If they work,
      # it has been set by your server administrator and you do not need it set here.

      Once I commented out the line below this all was fine

      Thanks Roojai for posting this.. Sadly making this change didn't sort out my problem with the .htaccess causing a sever error on url rewriting.
    • xur82's Avatar
    • xur82
    • Rocketeer
    • Posts: 86
    • Thanks: 2

    Re: rename .htaccess and site internal error

    Posted 12 years 7 months ago
    • OK, I got this sussed in the end..
      In case anyone's on a server where it isn't working for you (I'm on streamline.net)
      Use this code in your .htaccess

      Remember that if you've been using index.php in your strings for a while you may want to create 301 redirects for those pages, (good for search engines and visitors) as I have shown here (just the first one is done to illustrate, - create new lines the same filling in the old pages with index.php.. - Remember there's just a space between the old index.php url and NO domain name, the second part of that line contains your domain name.
      I stripped all the code from the supplied joomla htaccess and used just what's below and it works.
      If you don't want to do 301 redirects then don't add this line and those after:
      rewritecond %{http_host} ^YourURL.com [nc]

      Note: Dont forget to replace my URL metechmultimedia.com with YOURS.
      Note: On my server I did not require "Options +FollowSymLinks" - if you need this, add it to the top line!

      RewriteEngine On
      RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]
      RewriteCond %{QUERY_STRING} (<|%3C)([^s]*s)+cript.*(>|%3E) [NC,OR]
      RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
      RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
      RewriteRule .* index.php [F]
      RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
      RewriteCond %{REQUEST_URI} !^/index\.php
      RewriteCond %{REQUEST_URI} /component/|(/[^.]*|\.(php|html?|feed|pdf|vcf|raw))$ [NC]
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteRule .* index.php [L]
      rewritecond %{http_host} ^metechmultimedia.com [nc]
      rewriterule ^(.*)$ www.metechmultimedia.com/$1 [r=301,nc]
      redirect 301 /index.php/bedfordshire-recording-studio/bands www.metechmultimedia.com/bedfordshire-recording-studio/bands

Time to create page: 0.072 seconds