403 Forbidden after enabling permalinks

Add comments

今日將近六點時, 發現了 wordpress 有一個 permalink function

於是將 Default 改做年月日的 link

怎知?! 當 click 入篇文章時, 就出現 404…….!!!

後來發現要加一個 .htaccess, 並 fill in the code provided by workpress config

但加了後, 整個 blog 就出現 403

結果為了解決呢個問題, 我 OT 了一小時

有時侯, 我也覺得自己的確幾固執 ( 也可以說堅持吧 : ) , 為了解決一個問題, 的確是不會理會時間的

這一點的確和我的 team leader 很相似

說回正題, 回到屋企食完飯後, problem solving 繼續~

途中也找了很多網, 最後竟然給我找到一個解決的網了, 在此和大家分享

如你的 wordpress 建立 root 的 folder 下, eg. http://www.abc.com/hehablog

你便要在 blog 這個 folder 下(即是 index.php 的同一 directory) 建立一個 .htacess

最簡單是你在你的PC 建立一個 test.txt 檔, 然後在入面打


Options +FollowSymLinks

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /hehablog/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /hehablog/index.php [L]
</IfModule>

你會發現第一行是最重要的, 是 wordpress 的提示沒有的!! 也就是我找了四五個小時的 solution

save 後 upload 這個 file, 在 FTP client software 再 test.txt rename 做 .htaccess

再將佢 mod 變成 666

最後在 wordpress 入面 manage 的 settings (permlink), 改你想改的 Settings

那便可以了~~~~

在這提供原網

http://wordpress.org/support/topic/138301

Posted on July 31st 2008 in 煩惱

Leave a Reply

Click to Insert Smiley

SmileBig SmileGrinLaughLOLFrownBig FrownWinkKissRazzAngelAngryReally AngryConfusedNeutralThinkingChicCoolNerdSillyDrunken RazzMad RazzEvil GrinMeanPissed OffReally PissedCurseShoutGrit TeethCryWeepSide FrownWiltSmugDisdainRoll EyesSarcasmLoserTalk to the HandShyBeat UpPainShameBeautyBlushCuteLashesKissingKiss BlowKissedHeh!SmirkSnickerGiggleIn LoveDroolEek!ShockSickSuspenseTrembleDazedHypnotizedFoot in MouthMoney MouthQuietShut MouthDOH!IDKQuestionLyingStruggleSweatStopByeGo AwayWavingTime OutCall MeOn the PhoneMeetingSecretHandshakeHigh FiveHug LeftHug RightClapDanceJumpFingers CrossedVictoryYawnSleepyPrayWorshipWaitingAlienClownCowboyCyclopsDevilDoctorFemale FighterMale FighterMohawkMusicPartyPirateSkywalkerSnowmanSoldierGhostSkeletonEatStarvingVampireZombie KillerBunnyCatCat 2ChickChickenChicken 2CowCow 2DogDog 2DuckGoatHippoKoalaLionMonkeyMonkey 2MousePandaPigPig 2SheepSheep 2ReindeerSnailTigerTurtleFemaleMaleHeartBroken HeartRoseDead RosePeaceYin YangUS FlagMoonStarSunCloudyRainThunderUmbrellaRainbowMusic NoteYesNoAirplaneCarIslandAnnouncebrbBeerDrinkLiquorCakeCoffeePizzaWatermelonBowlPlateCanMailCellPhoneCameraFilmTVClockLampSearchCoinsComputerConsolePresentSoccerCloverPumpkinBombHammerKnifeHandcuffsPillPoopCigarette

Fatal error: SUHOSIN - Use of eval is forbidden by configuration in /home/myk3.net/myblog/wp-content/themes/rabbit-hole-10/footer.php(2) : eval()'d code on line 1