![]() |
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 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? |
Quote:
Quote:
:thumbsup |
If you dont have PHP working on the server WP will not work.
|
Quote:
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 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.
|
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. |
Also why are these rules different?
RewriteCond %{HTTP_REFERER} !^http://(www\.)?tranzagals.com.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://(www\.)?frenchcum.com(/)?.*$ [NC] |
Quote:
I'll check out what your coder said and what ScriptWorkz said too. |
This should be of some help;
http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html |
Quote:
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% ;) |
Quote:
|
All times are GMT -7. The time now is 09:06 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123