English 中文(简体)
可在所有网页上查阅404份
原标题:.htaccess issue in Wordpress giving 404 on all pages

我有一个言语多语:

网址1. Local.loc [with subdomains on my local],我希望有三页。

网址1. local.loc/working - (posts page, but 我请作为我的头衔开展工作)

site1.local.loc/about - (static page)

site1.local.loc/contact - (static page)

Since Works is my posts page where I keep putting in content, I changed my permalinks for this site to:

/works/%postname%/

However, when clicking on view post at the end of posting anything, it leads me to a 404 page which means there is a disconnect. This is also the case for viewing any page. Is my .htaccess file faulty?

How do I solve this? Also how do I make all my posts appear in my Works page (as in, how to make that page the posts page?)

感谢!

www.un.org/Depts/DGACM/index_spanish.htm 更新:我发现,我有404页,用于在字塔网络建立一个网站。

问题回答

You do not have to touch .htaccess file.

Make a custom post type that is called works. All those posts made in that custom post type will have that url that you desire. There is no other way to do it. (even if there is, it must be dirty) That is celanest way, and since wp does it by itself you can expect that nothing will go wrong wnen you update, install plugins, etc.

设立一个称为“工作”的职类,然后简单地显示该职类的所有员额/工作/所有员额,然后将列为“工作/职位/职位/职位”。

You will need to change the permalink structure to /%category%/%postname%/

Check this in administration

Settings > Permalinks > Post name





相关问题
Converting GET method url s to logical permanent links

I have a J2EE application with a web service which goes like http://servername/service?task=getFile&id=25 How can I convert these type of urls to http://servername/service/getFile/25 http://...

wordpress permalink post_type

i am looking for a way to get the post_type into a wordpress permalink structure - especially considering custom post_type s defined by my own plugin. is there an easy way to do that, or do you know ...

.htaccess gone for deleted, permalink database entries

I have event entries in a php application with a permalink structure for the events. I m creating a dynamic xml sitemap for google et al. which creates new url nodes as events are added, and when an ...

Wordpress stop post redirects

I m having a Wordpress problem regarding permalinks. When I have a post whose permalink is say, /2009/10/podcasts, trying to access /podcasts redirects to /2009/10/podcasts. Is there any way to stop ...

Recommended url structure for parent child list in mvc

If I am listing child items of a parent in an asp.net mvc app, is there a best practice to how the url structure should be formed? Example: 1. http://app/parent/<parentID>/children 2. http://...

Rails Friendly URLs

I have a model called Project and I ve defined the "to_param" method as this: def to_param permalink end I am using this permalink plugin github.com/febuiles/make_permalink so when I call p....

Permalink/slug best practices

I m about to setup permalinks on a website and I m wondering what sort of conventions I should follow in regards to generating them from the existing table of news articles. So far here are the rules/...

热门标签