HELP: Configuring .htaccess

Status
Not open for further replies.

takuhii

New Member
Messages
344
Reaction score
0
Points
0
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??
 

DJHolliday

New Member
Messages
38
Reaction score
0
Points
0
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.
 

Sohail

Active Member
Messages
3,055
Reaction score
0
Points
36
This should be posted in 'Site Management' just so you know :).
 

rmojica

New Member
Messages
11
Reaction score
0
Points
0
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
 

takuhii

New Member
Messages
344
Reaction score
0
Points
0
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]
 

DJHolliday

New Member
Messages
38
Reaction score
0
Points
0
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.
 
Status
Not open for further replies.
Top