My .htaccess file re-directed problems?

Posted by Glenn Curtis on Server Fault See other posts from Server Fault or by Glenn Curtis
Published on 2012-07-11T13:34:17Z Indexed on 2012/07/11 15:17 UTC
Read the original article Hit count: 310

Filed under:
|

I am hoping you can help me! Below is my .htaccess files for my Apache server running on top of Ubuntu server. This is my local server which I installed so I can develop my site on this instead of using my live site! However i have all my files and the database on my localhost now but each time I access my server, vaio-server (its a sony laptop), it just takes me to my live site! Now eveything is in the root of Apache, /var/www - its the only site I will develop on this system so I don't need to config this to look at any many than this one site!

I think thats all, all the Apache files, site-available/default ect are as standard. - Please Help!!

Many Thanks

Glenn Curtis.

 DirectoryIndex index.php index.html

  # Upload sizes
  php_value upload_max_filesize 25M
  php_value post_max_size 25M
  # Avoid folder listings
  Options -Indexes

 <IfModule mod_rewrite.c>
    Options +FollowSymlinks
    RewriteEngine on
    RewriteBase /

    # Maintenance
    #RewriteCond %{REQUEST_URI} !/maintenance.html$
    #RewriteRule $ /maintenance.html [R=302,L]

    #Redirects to www
    #RewriteCond %{HTTP_HOST} !^vaio-server [NC]
    #RewriteCond %{HTTPS}s ^on(s)|off
    #RewriteRule ^(.*)$ glenns-showcase.net/$1 [R=301,QSA,L]

    #Empty string
    RewriteRule    ^$ app/webroot/    [L]
    RewriteRule    (.*) app/webroot/$1 [L]
 </IfModule>

© Server Fault or respective owner

Related posts about apache2

Related posts about .htaccess