Closed Thread
Results 1 to 6 of 6

Thread: HELP: Configuring .htaccess

  1. #1
    takuhii's Avatar
    takuhii is offline x10 Sophmore takuhii is an unknown quantity at this point
    Join Date
    Mar 2006
    Location
    UK
    Posts
    172

    HELP: Configuring .htaccess

    I don't know if anyone else out there uses ZENPHOTO, but I am having a b*tch of a time with the lestest version 1.1. It would seem that if I want to navigate ANYWHERE within my zenphoto application, it wants to re-write my URL from http://takuhii.x10hosting.com/ to http://www.takuhii.x10hosting.com/ the guys at Zenphoto say it is something to do with the way the server handles the HTTP requests or something and I can remedy this by adding some code to my .htaccess file.

    My query is this, does ANYONE know how I can stop my apps rewiting my URL to www.takuhii.... ???

    Any help would be greatly appreciated guys, I know how busy the admins get and stuff, so I don't want to bother them with some random newbie comment??
    All your domains are belong to us
    Web, HTML & Design Guru

  2. #2
    DJHolliday is offline x10Hosting Member DJHolliday is an unknown quantity at this point
    Join Date
    Oct 2007
    Posts
    38

    Re: HELP: Configuring .htaccess

    It would be nice to see your current .htaccess file.
    Do you see any ProxyPass there or 'RewriteEngine On'?
    You have to give us some more information.
    DJ
    ---------------------------------------------
    Quis Custodiet Ipsos Custodes?

  3. #3
    Sohail's Avatar
    Sohail is offline x10 Spammer Sohail is an unknown quantity at this point
    Join Date
    Sep 2007
    Location
    London, UK
    Posts
    3,052

    Re: HELP: Configuring .htaccess

    This should be posted in 'Site Management' just so you know .

  4. #4
    rmojica is offline x10Hosting Member rmojica is an unknown quantity at this point
    Join Date
    Sep 2007
    Posts
    11

    Re: HELP: Configuring .htaccess

    ok that's they call it Redirect 301...

    using this redirect 301 helps you not to mess up your pr...
    because google see your site with www and your site with out www different from each other.

    try this it will help you alot...
    http://ragepank.com

  5. #5
    takuhii's Avatar
    takuhii is offline x10 Sophmore takuhii is an unknown quantity at this point
    Join Date
    Mar 2006
    Location
    UK
    Posts
    172

    Re: HELP: Configuring .htaccess

    my .htaccess follows:

    Code:
    # BEGIN FAlbum 
    <IfModule mod_rewrite.c> 
    </IfModule> 
    # END FAlbum 
    # -FrontPage- 
    IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti* 
    <Limit GET POST> 
    order deny,allow 
    deny from all 
    allow from all 
    </Limit> 
    <Limit PUT DELETE> 
    order deny,allow 
    deny from all 
    </Limit> 
    AuthName www.takuhii.x10hosting.com 
    AuthUserFile /backup/home/takuhii/public_html/_vti_pvt/service.pwd 
    AuthGroupFile /backup/home/takuhii/public_html/_vti_pvt/service.grp 
    # BEGIN WordPress 
    <IfModule mod_rewrite.c> 
    RewriteEngine On 
    RewriteBase / 
    RewriteCond %{REQUEST_FILENAME} !-f 
    RewriteCond %{REQUEST_FILENAME} !-d 
    RewriteRule . /index.php [L] 
    </IfModule> 
     
    # END WordPress 
    RewriteEngine on 
    RewriteCond %{HTTP_REFERER} !^http://takuhii.x10hosting.com/.*$      [NC] 
    RewriteCond %{HTTP_REFERER} !^http://takuhii.x10hosting.com$      [NC] 
    RewriteCond %{HTTP_REFERER} !^http://www.takuhii.x10hosting.com/.*$      [NC] 
    RewriteCond %{HTTP_REFERER} !^http://www.takuhii.x10hosting.com$      [NC] 
    RewriteRule .*\.([^/]*jpg|jpeg|gif|png|bmpjpg|jpeg|gif|png|bmp)$ /403.shtml [R,NC] 
     
    RewriteEngine on 
    # Combine and minify JavaScript and CSS with Minify. 
    RewriteRule ^(.*\.(css|js))$ /minify.php?files=$1 [L,NC]
    All your domains are belong to us
    Web, HTML & Design Guru

  6. #6
    DJHolliday is offline x10Hosting Member DJHolliday is an unknown quantity at this point
    Join Date
    Oct 2007
    Posts
    38

    Re: HELP: Configuring .htaccess

    you have three conditional rewrites in you .htaccess

    1. send every request of a file or directory, which don't exist to index.php
    2. prevent other domains from linking to your pictues
    3. send every CSS and JS file through minify.php

    you might need to add a rule to rewrite all requests which start with 'www'
    The mod_rewrite documentation is not bad, you should find the necessary changes there.
    DJ
    ---------------------------------------------
    Quis Custodiet Ipsos Custodes?

Closed Thread

Similar Threads

  1. .htaccess causing 500 internal server error
    By marc2003 in forum Free Hosting
    Replies: 2
    Last Post: 10-16-2007, 06:29 AM
  2. Se puede usar .htaccess????
    By rackfenix in forum Soporte
    Replies: 7
    Last Post: 10-02-2007, 07:03 PM
  3. Free web hosting with PHP and .htaccess support
    By andygtak in forum Off Topic
    Replies: 4
    Last Post: 09-17-2007, 01:22 PM
  4. default .htaccess
    By Fedlerner in forum Computers & Technology
    Replies: 9
    Last Post: 09-05-2007, 09:10 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers