How can I fix my WordPress Permalinks?
如果你的wordpress 搬家,從主機A 搬到主機B, 新的主機可能沒有設定正確,會造成「自定網址」的功能會不能運作,如果是在 ubuntu 滿簡單的,執行一下這指令即可。
1.) Make sure you have enabled mod_rewrite in apache. This can be done by running:
a2enmod rewrite
and then restarting apache
service apache2 restart
如果是在 centos 沒有 a2enmod 指令,也只需要在 .conf 裡增加下列紅字的部份:
<VirtualHost *:80>
ServerAlias XXX.com
ServerAdmin XXX
DocumentRoot /var/www/html/XXX.com/
ServerName www.XXX.com
DirectoryIndex index.html index.php
<Directory "/var/www/html/www.XXX.com/">
allow from all
Options -Indexes
AllowOverride All
</Directory>
CustomLog ${APACHELOGDIR}/XXX.log common
ErrorLog ${APACHELOGDIR}/XXX-error.log
</VirtualHost>
相關推薦
How can I fix my WordPress Permalinks?
如果你的wordpress 搬家,從主機A 搬到主機B, 新的主機可能沒有設定正確,會造成「自定網址」的功能會不能運作,如果是在 ubuntu 滿簡單的,執行一下這指令即可。 1.) Make sure you have enabled mod_rewrite in apache. This can be
Ask HN: How can I analyze my own browsing behavior with only local tools?
How can I analyze and make statistics of my own web browsing behavior using only local software, and without giving out my personal browsing history to any
How Can I Take My Coding Skills from Intermediate to Expert?
I started coding about 4 years ago but I feel like I'm in a bit of a rut lately. I understand the basic building blocks perfectly, but higher level concept
Ask HN: As a graduate student, how can I finance my applications abroad in Iran?
Please read till the end, this is basically a cry for help...So basically I'm applying abroad this year and here's the situation:1. Iran's economy is plumm
【轉】How can I check the port status of my fibre channel HBA?
https://access.redhat.com/solutions/528683 How can I check the port status of my fibre channel HBA? SOLUTION UNVERIFIED - 已更新 2017
Ask HN: How can I improve and make my CV more effective?
Hi All, I am looking for constructive feedback about my CV. I am a software engineer turned manager with a long history in system integration consulting co
Ask HN: What do you think about my agency's new website and how can I improve it
We had to retire our old website, and move to something more modern and simplistic. However i feel that i spent a lot of time over thinking this project, s
What is a Webhook and how can I use them at my company?
The Webhook is increasingly being used by companies hoping to improve their customer experience. But what exactly are they and how can they help you? If y
Ask HN: How can I increase discoverability on my blog without it looking spammy?
Currently each article on my blog is a full-page 'reader view' style document with only a basic site-wide header and footer.There is nothing to draw visito
NEST - How can i do multiple nested aggregation?
child cte nes can pub code one something rst question: How can I do multiple nested aggregation? I have tried something like this: Aggreg
How can I set ccshared=-fPIC while executing ./configure?
configure exe -cp cpp flag cxx flags print config 解決方式如下: make clean ./configure CFLAGS=-fPIC CXXFLAGS=-fPICHow can I set ccshared=-fPIC
how can I make the login form transparent?
event ack bsp with alt nbsp init eve ext This is how you can make the Login Form transparent: 1. Add this css to Server Module-> Cus
【轉】How can I get firmware version of a Qlogic HBA card?
https://access.redhat.com/solutions/36776 How can I get firmware version of a Qlogic HBA card? SOLUTION UNVERIFIED - 已更新 2017年八月25
How can I start a systemd service only after mysql has started?
在 centos 裡,如果 service 執行順序有問題,會造成程式無法啟動,有些程式必需等 database service 先啟動後,才能執行,寫法如下: Add After=mysql.service to your service file (or change it to the correct
How can I use different pipelines for different spiders in a single Scrapy project
2012-11-28 Hi vitsin, You can’t override settings like this in your spiders like your code does: class FirstSpide
How can I count the time it takes a function to complete in Java?
要知道 一個 function 需要執行多少個 ms, 用下面的程式就可以了,滿方便的。 long startTime = System.currentTimeMillis(); doReallyLongThing(); long endTime = System.currentTimeMil
How can I install the `ll` command on Mac OS X?
In OS X 10.9.5 since Mavericks (and at least up to El Capitan) you have to add an alias command to your .bash_profile file in your home folder: ~/.bash_pr
How can I debug a HTTP POST in Chrome / Firefox?
原來要看到browser post 的資料,還滿簡單的耶!好方便哦。 Firefox截圖: Go to Chrome Developer Tools (Chrome Menu -> More Tools -> Developer Tools). Choose “Network” tab.
[iOS] How can I rearrange UITabBarController items using the Storyboard?
WOW, 真的耶,可以拖的動。 In the storyboard highlight the tab bar controller. Make sure you are zoomed in enough and that a blue box is around the tab bar controlle
How can i detect the library image is from front camera or back camera
遇到一個奇怪的問題,iOS 前鏡頭拍的照片,被旋轉了 180度。 解法如下: Your code checks for available cameras on the device. What you need to do is read the metadata for the image after