Need help with server administration?
RSS icon Email icon Home icon
  • i got some errors after redirect

    Posted on May 26th, 2009 servbit1 No comments

    before using this redirect rule i was able to edit my site with front page
    and also i got error syntax error prototype.js after using redirect
    this is my new .htaccess file in the public_html directory

    RewriteEngine on

    # -FrontPage-

    AuthUserFile /home6/attejara/public_html/_vti_pvt/service.pwd
    AuthGroupFile /home6/attejara/public_html/_vti_pvt/service.grp

    order deny,allow
    deny from all
    allow from all

    order deny,allow
    deny from all

    # Use PHP5 as default
    AddHandler application/x-httpd-php5 .php

    AuthName attejara.com
    IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

    RewriteCond %{HTTP_HOST} ^attejara.com$ [OR]
    RewriteCond %{HTTP_HOST} ^www.attejara.com$
    RewriteRule ^.*$ “http\:\/\/www\.attejara\.com\/ms\/index\.php” [R=301,L]

    Your rewrite rule says “if the host is attejara.com or the host is www.attejara.com, redirect EVERY REQUEST to http://www.attejara.com/ms/index.php”. If you are storing javascript files on the attejara.com domain, then yes, those get redirected, too.

    try adding this line
    RewriteRule ^([^.]*)/?$ index.php [L]

    Leave a reply

    You must be logged in to post a comment.