Webmastersite.net
Register Log In

Bad .htaccess file
Suddenly my directory stopped working.

Comments on Bad .htaccess file

SoSara
Beginner

Usergroup: Member
Joined: Dec 14, 2009

Total Topics: 1
Total Comments: 2
SoSara
Posted Feb 28, 2010 - 6:37 PM:

I was in the middle of adding listings to my directory when it started giving me "file not found" errors. I talked to my web host's tech support, who said there were errors in the .htaccess file. He deactivated the file, which at least lets me get to the admin page.

I have no idea how to fix the errors. Can anyone help?

Here's the file:

Options +FollowSymlinks
RewriteEngine on
RewriteBase /directory/

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !(.+)\.(.+)
RewriteCond %{REQUEST_URI} !(.*)/$
RewriteRule ^(.*)$ $1/ [L,R=301]


RewriteRule ^admin/?$ admin/index.php
RewriteRule ^admin/([-_/\+A-Za-z0-9]+)/?$ admin/$1/index.php

RewriteRule ^restaurants/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=2&page=$1
RewriteRule ^restaurants/$ index.php?rewritten=1&action=displaycat&catid=2
RewriteRule ^pizza/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=3&page=$1
RewriteRule ^pizza/$ index.php?rewritten=1&action=displaycat&catid=3
RewriteRule ^placesofworship/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=6&page=$1
RewriteRule ^placesofworship/$ index.php?rewritten=1&action=displaycat&catid=6
RewriteRule ^foodanddrink/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=34&page=$1
RewriteRule ^foodanddrink/$ index.php?rewritten=1&action=displaycat&catid=34
RewriteRule ^homeandgarden/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=35&page=$1
RewriteRule ^homeandgarden/$ index.php?rewritten=1&action=displaycat&catid=35
RewriteRule ^plumbers/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=46&page=$1
RewriteRule ^plumbers/$ index.php?rewritten=1&action=displaycat&catid=46
RewriteRule ^caterers/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=47&page=$1
RewriteRule ^caterers/$ index.php?rewritten=1&action=displaycat&catid=47
RewriteRule ^caterers/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=48&page=$1
RewriteRule ^caterers/$ index.php?rewritten=1&action=displaycat&catid=48
RewriteRule ^banquethalls/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=52&page=$1
RewriteRule ^banquethalls/$ index.php?rewritten=1&action=displaycat&catid=52
RewriteRule ^hvac/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=54&page=$1
RewriteRule ^hvac/$ index.php?rewritten=1&action=displaycat&catid=54
RewriteRule ^communitygroups/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=55&page=$1
RewriteRule ^communitygroups/$ index.php?rewritten=1&action=displaycat&catid=55
RewriteRule ^fitnessandbeauty/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=58&page=$1
RewriteRule ^fitnessandbeauty/$ index.php?rewritten=1&action=displaycat&catid=58
RewriteRule ^cosmetics/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=59&page=$1
RewriteRule ^cosmetics/$ index.php?rewritten=1&action=displaycat&catid=59
RewriteRule ^barbers/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=60&page=$1
RewriteRule ^barbers/$ index.php?rewritten=1&action=displaycat&catid=60
RewriteRule ^gyms/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=61&page=$1
RewriteRule ^gyms/$ index.php?rewritten=1&action=displaycat&catid=61
RewriteRule ^weightloss/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=62&page=$1
RewriteRule ^weightloss/$ index.php?rewritten=1&action=displaycat&catid=62
RewriteRule ^skincare/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=63&page=$1
RewriteRule ^skincare/$ index.php?rewritten=1&action=displaycat&catid=63
RewriteRule ^shopping/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=64&page=$1
RewriteRule ^shopping/$ index.php?rewritten=1&action=displaycat&catid=64
RewriteRule ^hairstylists/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=65&page=$1
RewriteRule ^hairstylists/$ index.php?rewritten=1&action=displaycat&catid=65
RewriteRule ^mensclothing/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=66&page=$1
RewriteRule ^mensclothing/$ index.php?rewritten=1&action=displaycat&catid=66
RewriteRule ^womensclothing/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=67&page=$1
RewriteRule ^womensclothing/$ index.php?rewritten=1&action=displaycat&catid=67
RewriteRule ^jewelry/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=68&page=$1
RewriteRule ^jewelry/$ index.php?rewritten=1&action=displaycat&catid=68
RewriteRule ^childrensclothing/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=69&page=$1
RewriteRule ^childrensclothing/$ index.php?rewritten=1&action=displaycat&catid=69
RewriteRule ^toys/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=70&page=$1
RewriteRule ^toys/$ index.php?rewritten=1&action=displaycat&catid=70
RewriteRule ^gifts/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=71&page=$1
RewriteRule ^gifts/$ index.php?rewritten=1&action=displaycat&catid=71
RewriteRule ^artsandcrafts/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=72&page=$1
RewriteRule ^artsandcrafts/$ index.php?rewritten=1&action=displaycat&catid=72
RewriteRule ^books/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=73&page=$1
RewriteRule ^books/$ index.php?rewritten=1&action=displaycat&catid=73
RewriteRule ^officesupplies/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=74&page=$1
RewriteRule ^officesupplies/$ index.php?rewritten=1&action=displaycat&catid=74
RewriteRule ^furniture/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=75&page=$1
RewriteRule ^furniture/$ index.php?rewritten=1&action=displaycat&catid=75
RewriteRule ^furniture/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=76&page=$1
RewriteRule ^furniture/$ index.php?rewritten=1&action=displaycat&catid=76
RewriteRule ^electronics/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=77&page=$1
RewriteRule ^electronics/$ index.php?rewritten=1&action=displaycat&catid=77
RewriteRule ^cosmetics/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=78&page=$1
RewriteRule ^cosmetics/$ index.php?rewritten=1&action=displaycat&catid=78
RewriteRule ^homedecor/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=79&page=$1
RewriteRule ^homedecor/$ index.php?rewritten=1&action=displaycat&catid=79
RewriteRule ^homedecor/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=80&page=$1
RewriteRule ^homedecor/$ index.php?rewritten=1&action=displaycat&catid=80
RewriteRule ^dayspas/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=81&page=$1
RewriteRule ^dayspas/$ index.php?rewritten=1&action=displaycat&catid=81
RewriteRule ^nailsalons/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=82&page=$1
RewriteRule ^nailsalons/$ index.php?rewritten=1&action=displaycat&catid=82
RewriteRule ^tanning/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=83&page=$1
RewriteRule ^tanning/$ index.php?rewritten=1&action=displaycat&catid=83
RewriteRule ^proservices/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=84&page=$1
RewriteRule ^proservices/$ index.php?rewritten=1&action=displaycat&catid=84
RewriteRule ^banks/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=85&page=$1
RewriteRule ^banks/$ index.php?rewritten=1&action=displaycat&catid=85
RewriteRule ^insurance/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=86&page=$1
RewriteRule ^insurance/$ index.php?rewritten=1&action=displaycat&catid=86
RewriteRule ^financialadvisers/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=87&page=$1
RewriteRule ^financialadvisers/$ index.php?rewritten=1&action=displaycat&catid=87
RewriteRule ^accountants/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=88&page=$1
RewriteRule ^accountants/$ index.php?rewritten=1&action=displaycat&catid=88
RewriteRule ^lawyers/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=89&page=$1
RewriteRule ^lawyers/$ index.php?rewritten=1&action=displaycat&catid=89
RewriteRule ^taxes/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=90&page=$1
RewriteRule ^taxes/$ index.php?rewritten=1&action=displaycat&catid=90
RewriteRule ^notaries/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=91&page=$1
RewriteRule ^notaries/$ index.php?rewritten=1&action=displaycat&catid=91
RewriteRule ^medical/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=92&page=$1
RewriteRule ^medical/$ index.php?rewritten=1&action=displaycat&catid=92
RewriteRule ^coffeenews/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=94&page=$1
RewriteRule ^coffeenews/$ index.php?rewritten=1&action=displaycat&catid=94
RewriteRule ^coffeenews_restaurants/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=95&page=$1
RewriteRule ^coffeenews_restaurants/$ index.php?rewritten=1&action=displaycat&catid=95
RewriteRule ^coffeenews_advertisers/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=96&page=$1
RewriteRule ^coffeenews_advertisers/$ index.php?rewritten=1&action=displaycat&catid=96
RewriteRule ^coffeenews_elsewhere/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=97&page=$1
RewriteRule ^coffeenews_elsewhere/$ index.php?rewritten=1&action=displaycat&catid=97
RewriteRule ^chiropractors/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=98&page=$1
RewriteRule ^chiropractors/$ index.php?rewritten=1&action=displaycat&catid=98
RewriteRule ^driveinrestaurants/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=99&page=$1
RewriteRule ^driveinrestaurants/$ index.php?rewritten=1&action=displaycat&catid=99
RewriteRule ^icecream/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=100&page=$1
RewriteRule ^icecream/$ index.php?rewritten=1&action=displaycat&catid=100
RewriteRule ^businessgroups/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=101&page=$1
RewriteRule ^businessgroups/$ index.php?rewritten=1&action=displaycat&catid=101
RewriteRule ^bagels/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=102&page=$1
RewriteRule ^bagels/$ index.php?rewritten=1&action=displaycat&catid=102
RewriteRule ^brazilian/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=103&page=$1
RewriteRule ^brazilian/$ index.php?rewritten=1&action=displaycat&catid=103
RewriteRule ^pharmacies/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=104&page=$1
RewriteRule ^pharmacies/$ index.php?rewritten=1&action=displaycat&catid=104
RewriteRule ^dentists/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=106&page=$1
RewriteRule ^dentists/$ index.php?rewritten=1&action=displaycat&catid=106
RewriteRule ^dentists/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=108&page=$1
RewriteRule ^dentists/$ index.php?rewritten=1&action=displaycat&catid=108
RewriteRule ^pets/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=109&page=$1
RewriteRule ^pets/$ index.php?rewritten=1&action=displaycat&catid=109
RewriteRule ^veterinarians/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=110&page=$1
RewriteRule ^veterinarians/$ index.php?rewritten=1&action=displaycat&catid=110
RewriteRule ^petboarding/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=111&page=$1
RewriteRule ^petboarding/$ index.php?rewritten=1&action=displaycat&catid=111
RewriteRule ^petstores/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=112&page=$1
RewriteRule ^petstores/$ index.php?rewritten=1&action=displaycat&catid=112
RewriteRule ^petgroomers/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=113&page=$1
RewriteRule ^petgroomers/$ index.php?rewritten=1&action=displaycat&catid=113
RewriteRule ^podiatrists/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=114&page=$1
RewriteRule ^podiatrists/$ index.php?rewritten=1&action=displaycat&catid=114
RewriteRule ^doctors/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=115&page=$1
RewriteRule ^doctors/$ index.php?rewritten=1&action=displaycat&catid=115
RewriteRule ^urgentcare/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=116&page=$1
RewriteRule ^urgentcare/$ index.php?rewritten=1&action=displaycat&catid=116
RewriteRule ^medicalimaging/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=117&page=$1
RewriteRule ^medicalimaging/$ index.php?rewritten=1&action=displaycat&catid=117
RewriteRule ^medicallabs/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=118&page=$1
RewriteRule ^medicallabs/$ index.php?rewritten=1&action=displaycat&catid=118
RewriteRule ^autosandboats/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=119&page=$1
RewriteRule ^autosandboats/$ index.php?rewritten=1&action=displaycat&catid=119
RewriteRule ^tires/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=120&page=$1
RewriteRule ^tires/$ index.php?rewritten=1&action=displaycat&catid=120
RewriteRule ^gasstations/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=121&page=$1
RewriteRule ^gasstations/$ index.php?rewritten=1&action=displaycat&catid=121
RewriteRule ^carrepairs/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=122&page=$1
RewriteRule ^carrepairs/$ index.php?rewritten=1&action=displaycat&catid=122
RewriteRule ^oilchanges/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=123&page=$1
RewriteRule ^oilchanges/$ index.php?rewritten=1&action=displaycat&catid=123
RewriteRule ^acupuncture/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=124&page=$1
RewriteRule ^acupuncture/$ index.php?rewritten=1&action=displaycat&catid=124
RewriteRule ^itconsultants/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=125&page=$1
RewriteRule ^itconsultants/$ index.php?rewritten=1&action=displaycat&catid=125
RewriteRule ^smallbusinessservices/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=126&page=$1
RewriteRule ^smallbusinessservices/$ index.php?rewritten=1&action=displaycat&catid=126
RewriteRule ^conveniencestores/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=127&page=$1
RewriteRule ^conveniencestores/$ index.php?rewritten=1&action=displaycat&catid=127
RewriteRule ^womenshealth/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=128&page=$1
RewriteRule ^womenshealth/$ index.php?rewritten=1&action=displaycat&catid=128
RewriteRule ^government/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=129&page=$1
RewriteRule ^government/$ index.php?rewritten=1&action=displaycat&catid=129
RewriteRule ^towns/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=130&page=$1
RewriteRule ^towns/$ index.php?rewritten=1&action=displaycat&catid=130
RewriteRule ^tobacco/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=131&page=$1
RewriteRule ^tobacco/$ index.php?rewritten=1&action=displaycat&catid=131
RewriteRule ^children/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=132&page=$1
RewriteRule ^children/$ index.php?rewritten=1&action=displaycat&catid=132
RewriteRule ^playcenters/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=133&page=$1
RewriteRule ^playcenters/$ index.php?rewritten=1&action=displaycat&catid=133
RewriteRule ^accommodations/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=134&page=$1
RewriteRule ^accommodations/$ index.php?rewritten=1&action=displaycat&catid=134
RewriteRule ^hotels/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=135&page=$1
RewriteRule ^hotels/$ index.php?rewritten=1&action=displaycat&catid=135
RewriteRule ^seniors/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=136&page=$1
RewriteRule ^seniors/$ index.php?rewritten=1&action=displaycat&catid=136
RewriteRule ^sports/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=137&page=$1
RewriteRule ^sports/$ index.php?rewritten=1&action=displaycat&catid=137
RewriteRule ^bowling/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=138&page=$1
RewriteRule ^bowling/$ index.php?rewritten=1&action=displaycat&catid=138
RewriteRule ^soccer/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=139&page=$1
RewriteRule ^soccer/$ index.php?rewritten=1&action=displaycat&catid=139
RewriteRule ^lacrosse/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=140&page=$1
RewriteRule ^lacrosse/$ index.php?rewritten=1&action=displaycat&catid=140
RewriteRule ^athleticfacilities/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=141&page=$1
RewriteRule ^athleticfacilities/$ index.php?rewritten=1&action=displaycat&catid=141
RewriteRule ^gyms/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=142&page=$1
RewriteRule ^gyms/$ index.php?rewritten=1&action=displaycat&catid=142
RewriteRule ^trainers/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=143&page=$1
RewriteRule ^trainers/$ index.php?rewritten=1&action=displaycat&catid=143
RewriteRule ^trainers/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=144&page=$1
RewriteRule ^trainers/$ index.php?rewritten=1&action=displaycat&catid=144
RewriteRule ^communitycenters/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=145&page=$1
RewriteRule ^communitycenters/$ index.php?rewritten=1&action=displaycat&catid=145
RewriteRule ^communitycenters/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=146&page=$1
RewriteRule ^communitycenters/$ index.php?rewritten=1&action=displaycat&catid=146
RewriteRule ^courts/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=147&page=$1
RewriteRule ^courts/$ index.php?rewritten=1&action=displaycat&catid=147
RewriteRule ^fastfood/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=148&page=$1
RewriteRule ^fastfood/$ index.php?rewritten=1&action=displaycat&catid=148
RewriteRule ^familymedicine/([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=149&page=$1
RewriteRule ^familymedicine/$ index.php?rewritten=1&action=displaycat&catid=149
RewriteRule ^cosmeticmedicine /([0-9]+)\.html$ index.php?rewritten=1&action=displaycat&catid=150&page=$1
RewriteRule ^cosmeticmedicine /$ index.php?rewritten=1&action=displaycat&catid=150


RewriteRule ^members/([0-9]+)\.html?$ memberlist.php?rewritten=1&page=$1
RewriteRule ^members/[-_/\+A-Za-z0-9]+-([0-9]+)-trader\.html?$ trader.php?rewritten=1&name=$1
RewriteRule ^members/[-_/\+A-Za-z0-9]+-([0-9]+)\.html?$ memberlist.php?rewritten=1&action=profile&id=$1
RewriteRule ^members/?$ memberlist.php?rewritten=1
RewriteRule ^help/?$ help.php?rewritten=1
RewriteRule ^help/([-_/\+A-Za-z0-9]+)/?$ help.php?rewritten=1&rewritten=1&action=showcat&name=$1
RewriteRule ^help/[-_/\+A-Za-z0-9]+/[-_/\+A-Za-z0-9]+-([0-9]+)\.html?$ help.php?rewritten=1&action=showitem&id=$1


RewriteRule ^tags/([-_\+A-Za-z0-9]+)/?$ search.php?rewritten=1&filled=1&action=filter&whichtype=links&tagscondition=like&tagssearch=|$1|

RewriteRule ^[-_/\+A-Za-z0-9]+/vote-[-_/\+A-Za-z0-9]+-([0-9]+)\.html?$ vote.php?rewritten=1&id=$1&
RewriteRule ^[-_/\+A-Za-z0-9]+/email-[-_/\+A-Za-z0-9]+-([0-9]+)\.html?$ email.php?rewritten=1&id=$1&
RewriteRule ^[-_/\+A-Za-z0-9]+/[-_/\+A-Za-z0-9]+-([0-9]+)-thread-([0-9]+)\.html?$ comments.php?rewritten=1&id=$1&page=$2
RewriteRule ^[-_/\+A-Za-z0-9]+/[-_/\+A-Za-z0-9]+-([0-9]+)-thread.html?$ comments.php?rewritten=1&id=$1
RewriteRule ^[-_/\+A-Za-z0-9]+/[-_/\+A-Za-z0-9]+-([0-9]+)\.html?$ link.php?rewritten=1&action=detail&id=$1&
RewriteRule ^([0-9]+)/?$ index.php?rewritten=1&action=displaycat&catid=$1
RewriteRule ^([0-9]+)/([0-9]+)/?$ index.php?rewritten=1&action=displaycat&catid=$1&page=$2
RewriteRule ^([0-9]+)/sp([0-9]+).htm$ index.php?rewritten=1&action=displaycat&catname=$1&subpage=$2
RewriteRule ^([-_/\+A-Za-z0-9]+)/?$ index.php?rewritten=1&action=displaycat&catname=$1
RewriteRule ^([-_/\+A-Za-z0-9]+)/([0-9]+)\.html?$ index.php?rewritten=1&action=displaycat&catname=$1&page=$2
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Mar 01, 2010 - 10:47 PM:

When you submit the Admin -> Settings -> SEO page, that'll automatically write what should be a proper .htaccess. One thing that can break it is if you have any bad values typed in on that page, so a screenshot of that page would be helpful. If the .htaccess fails though, it should automatically deactivate itself. It's not doing that? You can manually delete the .htaccess file via FTP if it's not deactivating automatically.

You have a huge number of special rules there, probably special category URLs you've set on the edit category page? I don't see any problem with them though.

I can always take a look at it: http://www.wsnlinks.com/inspection.html
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Mar 02, 2010 - 4:07 AM:

For the cosmetic medicine category, you set the special url to be "cosmeticmedicine " with a space at the end. Spaces aren't allowed in .htaccess files or URLs so that breaks it.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



Sorry, you don't have permission to post posts. Log in, or register if you haven't yet.