![]() |
![]() |
![]() |
||||
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. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
ICQ: 197-556-237
Join Date: Jun 2003
Location: BRASIL !!!
Posts: 57,559
|
![]() 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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
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? |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 | |
ICQ: 197-556-237
Join Date: Jun 2003
Location: BRASIL !!!
Posts: 57,559
|
Quote:
Yes I do. ![]()
__________________
I'm just a newbie. |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Too lazy to set a custom title
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! |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
ICQ: 197-556-237
Join Date: Jun 2003
Location: BRASIL !!!
Posts: 57,559
|
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
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.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
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] |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 | |
ICQ: 197-556-237
Join Date: Jun 2003
Location: BRASIL !!!
Posts: 57,559
|
Quote:
I'll check out what your coder said and what ScriptWorkz said too.
__________________
I'm just a newbie. |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 |
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 |
Confirmed User
Industry Role:
Join Date: Jul 2004
Posts: 7,762
|
name the following file phpinfo.php
PHP Code:
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% ;)
__________________
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 | |
ICQ: 197-556-237
Join Date: Jun 2003
Location: BRASIL !!!
Posts: 57,559
|
Quote:
__________________
I'm just a newbie. |
|
![]() |
![]() ![]() ![]() ![]() ![]() |