young mone |
|
---|---|
well it kinda broke my site
Not Found The requested URL /forum/test-t14.html was not found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. [url=<a href="">http://pspw.co.cc]All</a> your game needs and more[/url]
|
Trustmaster |
|
---|---|
How did you configure your .htaccess?
May the Source be with you!
|
young mone |
|
---|---|
Options +FollowSymlinks
RewriteEngine On #RewriteBase / # AddType application/x-httpd-php .php .html #AddHandler php-cgi .php .html #Action php-cgi /cgi-bin/php.cgi # **** NEW FORUMS **** RewriteCond %{HTTP_HOST} !^(www\.)?([^.]+)\.(com|org|si|net)?$ RewriteCond %{HTTP_HOST} ^forum\.([^.]+)\.(com|org|si|net)?$ RewriteRule ^$ forums.php [L] RewriteCond %{HTTP_HOST} !^(www\.)?([^.]+)\.(com|org|si|net)?$ RewriteCond %{HTTP_HOST} ^forum\.([^.]+)\.(com|org|si|net)?$ RewriteRule ^(.*)-t([0-9]*)\.html(.*)$ forums.php?m=posts&q=$2$3 [L] RewriteCond %{HTTP_HOST} !^(www\.)?([^.]+)\.(com|org|si|net)?$ RewriteCond %{HTTP_HOST} ^forum\.([^.]+)\.(com|org|si|net)?$ RewriteRule ^(.*)-f([0-9]*)\.html(.*)$ forums.php?m=topics&s=$2$3 [L] RewriteCond %{HTTP_HOST} !^(www\.)?([^.]+)\.(com|org|si|net)?$ RewriteCond %{HTTP_HOST} ^forum\.([^.]+)\.(com|org|si|net)?$ RewriteRule ^(.*)-s([0-9]*)\.html$ forums.php?m=topics&s=$2$3 [L] # **** NEW PAGE/LIST REWRITE **** RewriteCond %{HTTP_HOST} !^(www\.)?([^.]+)\.(com|org|si|net)?$ RewriteCond %{HTTP_HOST} !^(forum|forums|gallery|main)\.([^.]+)\.(com|org|si|net)?$ RewriteCond %{HTTP_HOST} ^([^.]+)\.([^.]+)\.(com|org|si|net)?$ RewriteRule ^(.+)\.html(.*)$ /page.php?al=$1&comments=1$2 [L] RewriteCond %{HTTP_HOST} !^(www\.)?([^.]+)\.(com|org|si|net)?$ RewriteCond %{HTTP_HOST} !^(forum|forums|gallery|main)\.([^.]+)\.(com|org|si|net)?$ RewriteCond %{HTTP_HOST} ^([^.]+)\.([^.]+)\.(com|org|si|net)?$ RewriteRule ^$ list.php?c=%1 [L] RewriteCond %{HTTP_HOST} ^main\.([^.]+)\.(com|org|si|net)?$ RewriteRule ^$ http://www.%1.%2/ [R=301,L] RewriteCond %{HTTP_HOST} ^main\.([^.]+)\.(com|org|si|net)/?$ RewriteRule ^(.+)$ http://www.%1.%2/$1 [R=301,L] RewriteCond %{REQUEST_URI} !^/(.*)/$ RewriteCond %{REQUEST_URI} !^/(.*)/(.*)\.html$ RewriteCond %{REQUEST_URI} !^/(links|blogs|bloglist)\.html$ RewriteCond %{REQUEST_URI} !^/blog-(.*)\.html$ RewriteCond %{REQUEST_URI} !^/(.*)-b([0-9]*)\.html$ RewriteRule ^(.*)\.html(.*)$ page.php?al=$1&comments=1$2 [L] RewriteRule ^forum/$ forums.php [L] RewriteRule ^forum/(.*)-t([0-9]*)\.html(.*)$ forums.php?m=posts&q=$2$3 [L] RewriteRule ^forum/(.*)-f([0-9]*)\.html(.*)$ forums.php?m=topics&s=$2$3 [L] RewriteRule ^forum/(.*)-s([0-9]*)\.html$ forums.php?m=topics&s=$2$3 [L] RewriteRule ^tags/(.*)\.html$ plug.php?e=pagesearch&what=$1 [L] RewriteRule ^(.*)/(.*)\.html(.*)$ page.php?al=$2&comments=1$3 [L] RewriteRule ^(.*)/$ list.php?c=$1 [L] ## *** Catch all for any /*/ **** #RewriteCond %{HTTP_HOST} ^(www\.)?([^.]+)\.(com|org|si|net)?$ #RewriteCond %{REQUEST_URI} !^/(users|forum|forums|reviews|main|tags)/(.*)\.html$ #RewriteRule ^(.*)/(.*)\.html(.*)$ http://$1.%2.%3/$2.html$3 [R=301,L] #RewriteCond %{HTTP_HOST} ^(www\.)?([^.]+)\.(com|org|si|net)?$ #RewriteCond %{REQUEST_URI} !^/(users|forum|forums|reviews|main|tags)/$ #RewriteRule ^(.*)/$ http://$1.%2.%3/ [R=301,L] # **** SITEMAP **** RewriteCond %{HTTP_HOST} !^(www\.)?([^.]+)\.(com|org|si|net)?$ RewriteCond %{HTTP_HOST} ^([^.]+)\.([^.]+)\.(com|org|si|net)?$ RewriteRule ^sitemap\.xml$ /rss.php?m=sitemap&cat=%1 [L] # **** OTHER **** RewriteRule ^users/(.*)\.html(.*)$ users.php?m=details&name=$1 [L] # **** SAFETY **** RewriteCond %{QUERY_STRING} (\"|%22).*(\>|%3E|<|%3C).* [NC] RewriteRule ^(.*)$ redirect.html [NC] RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC] RewriteRule ^(.*)$ redirect.html [NC] RewriteCond %{QUERY_STRING} (\;|\'|\"|\%22).*(union|insert|where|select|update|drop|md5|or|and|if).* [NC] RewriteRule ^(.*)$ redirect.html [NC] RewriteRule (,|;|<|>|'|`) redirect.html [NC] # **** MESSAGES **** RewriteCond %{HTTP_HOST} !^(www\.)?([^.]+)\.(com|org|si|net)?$ RewriteCond %{HTTP_HOST} ^([^.]+)\.([^.]+)\.(com|org|si|net)?$ RewriteRule ^message\.php(.*)$ http://www.%2.%3/message.php$1 [R,L] RewriteRule ^(.*)/message\.php(.*)$ /message.php$3 [R,L] RewriteRule ^(.*)/(.*)/message\.php(.*)$ /message.php$4 [R,L] # **** ERROR MESSAGES **** ErrorDocument 400 /plug.php?e=error&m=400 ErrorDocument 401 /plug.php?e=error&m=401 ErrorDocument 403 /plug.php?e=error&m=403 ErrorDocument 404 /plug.php?e=error&m=404 ErrorDocument 500 /plug.php?e=error&m=500 RewriteCond %{HTTP_HOST} ^([^.]+)\.(com|org|si|net) [NC] RewriteRule ^(.*)$ http://www.%1.%2/$1 [R=301,L] RewriteRule ^index.php / [R=301,L] Added 1 day later: anyone [url=<a href="">http://pspw.co.cc]All</a> your game needs and more[/url]
|
|
This post was edited by young mone (2010-03-04 12:01, 14 years ago) |