开发者

Wget and Wordpress, keep last trailing slash

开发者 https://www.devze.com 2023-04-10 03:21 出处:网络
I have a Wordpress based website that I scrap using wget. I have articles under the form http://mydomain.com/2011/01/

I have a Wordpress based website that I scrap using wget. I have articles under the form

http://mydomain.com/2011/01/

once scraped becomes 

http://mydomain.com/2011/01.html

I found out that when I enter

http://mydomain.com/2011/01/ 

in the navigator, URL gets changed to 

http://mydomain.com/2011/01

which is why, I think, it is considered as a file when I call wget. I开发者_JS百科 would be very grateful if someone has some clue on how to address this.


I finally managed to get to the result I wanted, in this way: changing my permalink structure from

/%year%/%monthnum%/%postname%.html

to

/%year%/%monthnum%/%postname%/
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号