Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 06-26-2008, 12:00 PM   #1
tranza
ICQ: 197-556-237
 
Join Date: Jun 2003
Location: BRASIL !!!
Posts: 57,559
I need some help with my htaccess. Coders and programmers, please help!

This is the deal, I installed WordPress on my server, and wanted the archives and categories to have their own folders, created automatically by WordPress (like www.tranzagals.com/2008/archives-1/).

So I copied the code from WordPress and pasted on my .htaccess

This is the code:

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]


And this is how my .htaccess file looked like with this addition:

order allow,deny
allow from all

Options +FollowSymLinks

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?tranzagals.com.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?frenchcum.com(/)?.*$ [NC]
RewriteCond %{REMOTE_ADDR} !^208.99.195.175 [NC]
RewriteRule \.(jpe?g|gif|bmp|png)$ - [F,NC,L]

ErrorDocument 400 http://www.2.livejasmin.com/freechat...psprogram=REVS
ErrorDocument 403 http://www.2.livejasmin.com/freechat...psprogram=REVS
ErrorDocument 404 http://www.2.livejasmin.com/freechat...psprogram=REVS
ErrorDocument 500 http://www.2.livejasmin.com/freechat...psprogram=REVS
ErrorDocument 501 http://www.2.livejasmin.com/freechat...psprogram=REVS
ErrorDocument 503 http://www.2.livejasmin.com/freechat...psprogram=REVS

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]


But it seems that immediately after I uploaded this file, my server started to respond real slow, and eventually all my sites on that server was down.

Do you guys know what I did wrong? Or what might have caused this?

Thanks for the help guys!
__________________
I'm just a newbie.
tranza is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-26-2008, 12:02 PM   #2
Socks
Confirmed User
 
Industry Role:
Join Date: May 2002
Location: Toronto
Posts: 8,475
I'm not technical, but those look like modrewrite rules for PHP.. Do you have that turned on?

And do you want to send all your 404 traffic to livejasmin?

Last edited by Socks; 06-26-2008 at 12:03 PM..
Socks is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-26-2008, 12:04 PM   #3
tranza
ICQ: 197-556-237
 
Join Date: Jun 2003
Location: BRASIL !!!
Posts: 57,559
Quote:
Originally Posted by Socks View Post
I'm not technical, but those look like modrewrite rules for PHP.. Do you have that turned on?
No idea. How can I check that?

Quote:
Originally Posted by Socks View Post
And do you want to send all your 404 traffic to livejasmin?
Yes I do.

__________________
I'm just a newbie.
tranza is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-26-2008, 12:18 PM   #4
pornguy
Too lazy to set a custom title
 
pornguy's Avatar
 
Industry Role:
Join Date: Mar 2003
Location: Homeless
Posts: 62,911
If you dont have PHP working on the server WP will not work.
__________________
PornGuy skype me pornguy_epic

AmateurDough The Hottes Shemales online!
TChicks.com | Angeles Cid | Mariana Cordoba | MAILERS WELCOME!
pornguy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-26-2008, 12:21 PM   #5
tranza
ICQ: 197-556-237
 
Join Date: Jun 2003
Location: BRASIL !!!
Posts: 57,559
Quote:
Originally Posted by pornguy View Post
If you dont have PHP working on the server WP will not work.
I have PHP working and WP is working on my server.

I have a problem when I change the way permalinks are displayed. That's all.

What Socks said makes sense. I should change some of the permissions. I just don't know which ones!
__________________
I'm just a newbie.
tranza is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-26-2008, 12:25 PM   #6
Socks
Confirmed User
 
Industry Role:
Join Date: May 2002
Location: Toronto
Posts: 8,475
I asked my programmer here for you Tranza, and you need to turn it on in your php.ini? If you didn't install it with PHP, you may have to re-install, but she thinks you can turn it on after install.. But not sure. If you just installed PHP, it may be easier to just re-install it with mod_rewrite enabled.
Socks is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-26-2008, 12:29 PM   #7
ScriptWorkz
Confirmed User
 
Industry Role:
Join Date: Jul 2007
Location: Intraweb
Posts: 274
You have two sets of rewrite rules in your .htaccess, i didn't even look that close, i know the familiar ones from wordpress but i didn't take the time to figure out the other ones. Chances are your creating a condition where it keeps rewriting to itself and endlessly loops.

EDIT - looks like the other ones are anti-hotlinking, remove them temporarily to see if it fixes the problem then you can worry about how to make both sets co-exist.

Last edited by ScriptWorkz; 06-26-2008 at 12:32 PM..
ScriptWorkz is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-26-2008, 12:33 PM   #8
Socks
Confirmed User
 
Industry Role:
Join Date: May 2002
Location: Toronto
Posts: 8,475
Also why are these rules different?

RewriteCond %{HTTP_REFERER} !^http://(www\.)?tranzagals.com.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?frenchcum.com(/)?.*$ [NC]
Socks is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-26-2008, 01:14 PM   #9
tranza
ICQ: 197-556-237
 
Join Date: Jun 2003
Location: BRASIL !!!
Posts: 57,559
Quote:
Originally Posted by Socks View Post
Also why are these rules different?

RewriteCond %{HTTP_REFERER} !^http://(www\.)?tranzagals.com.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://(www\.)?frenchcum.com(/)?.*$ [NC]
Yes, they are. One of them is for my own domain, and the other for one know TGP to hotlink from my site.

I'll check out what your coder said and what ScriptWorkz said too.
__________________
I'm just a newbie.
tranza is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-26-2008, 01:18 PM   #10
mrwilson
mrwilson 2.0
 
Industry Role:
Join Date: Jul 2007
Location: ICQ: 465406783
Posts: 5,122
This should be of some help;
http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html
mrwilson is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-26-2008, 02:10 PM   #11
AmateurFlix
Confirmed User
 
Industry Role:
Join Date: Jul 2004
Posts: 7,762
Quote:
Originally Posted by tranza View Post
No idea. How can I check that?
name the following file phpinfo.php
PHP Code:
<?php
phpinfo
();
?>
load it in your browser & search for "mod_rewrite"
if that does not appear under "Loaded Modules", then you do not have it installed.

remove phpinfo.php as soon as you are done with it - there is no reason to let hackers see how your configuration is set up.

I'm not 100&#37; certain I'm correct about this, but 99.5% ;)
__________________
AmateurFlix is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-26-2008, 02:18 PM   #12
tranza
ICQ: 197-556-237
 
Join Date: Jun 2003
Location: BRASIL !!!
Posts: 57,559
Quote:
Originally Posted by AmateurFlix View Post
name the following file phpinfo.php
PHP Code:
<?php
phpinfo
();
?>
load it in your browser & search for "mod_rewrite"
if that does not appear under "Loaded Modules", then you do not have it installed.

remove phpinfo.php as soon as you are done with it - there is no reason to let hackers see how your configuration is set up.

I'm not 100% certain I'm correct about this, but 99.5% ;)
Thanks for that. I'll try it.
__________________
I'm just a newbie.
tranza is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.