WordPress Tip on Permalink Options WordPress dica sobre opções Permalink
This tip covers configuration in Options/Permalinks [Edit Permalink Structure] for WordPress users. Esta dica abrange configuração em Options / Permalinks [Edit Permalink Estrutura] WordPress para os usuários. My version is WordPress 1.5. A minha versão é WordPress 1,5.
By default WordPress uses a query string to identify a post. Por padrão WordPress usa uma query string para identificar um post. This is neither search engine friendly nor human friendly. Este motor de busca amigável não é nem humana nem amigável. A better way is to use a custom URI to better identify your posts. A melhor maneira é usar um costume URI para melhor identificar suas mensagens. Many bloggers include a date as part of the permalink. Muitos blogueiros incluir uma data como parte do permalink. I advise against it Aconselho contra ele . The date of the post is not so important as to be part of the URI! A data da postagem não é assim tão importante como a fazer parte da URI!
My suggestion is to use a simple structure containing the post-slug as your Permalink URI. A minha sugestão é usar uma estrutura simples contendo o pós-slug como seu Permalink URI. I use: Eu uso:
Structure: /index.php/archive/%postname%/ Estrutura: / index.php / archive /% postname% /
Note that there is an index.php embedded. Note que existe um index.php embutido. This is fine with search engines and humans too. Trata-se bem com motores de pesquisa e de seres humanos também. And it will work great. E dará muito trabalho. It doesn’t require mod_rewrite functionality or change to htaccess. Não exige o mod_rewrite ou alterar a funcionalidade htaccess. Something as simple as this will work in all configurations. Algo tão simples como isto irá funcionar em todas as configurações.
For category base I use simply: /index.php/category Para a categoria base simplesmente eu uso: / / index.php / categoria
This is just a simple example. Este é apenas um exemplo simples. You can make your URI as complicated as you want. Você pode fazer seu URI como complicada como você quer. Just remember to test it. Basta lembrar de testá-lo.
Personally I like it short and simple. Pessoalmente, como ele curtas e simples.
Update 1 : Please refer to the comments below for points and counterpoints on this topic. Update 1: Para consultar as observações a seguir para os pontos e contrapontos sobre este tema.
Update 2 : The objections raised by some people is that having an identical named title for posts will cause problems with WordPress. Update 2: As objecções levantadas por algumas pessoas é que ter um título idêntico nomeado para os cargos que podem vir a causar problemas com WordPress. This is not a valid observation anymore. Esta não é uma observação válida anymore. In other words you can have 10 posts named “Happy New Year” and WordPress will assign unique post-slug to each. Em outras palavras, pode ter 10 lugares com o nome "Feliz Ano Novo" e WordPress irá atribuir única pós-slug para cada um. Simply said this approach is without any drawbacks AFAIK. Basta dizer esta abordagem é, sem quaisquer inconvenientes AFAIK.
Update 3 : Cem commented: Update 3: Cem comentou:
For future reference, I was able to get permalink URL rewriting working in WordPress by creating a php.ini at my domain root with the following configuration: Para referência futura, eu era capaz de obter permalink URL reescrevendo trabalhando em WordPress, criando um php.ini em meu domínio raiz com a seguinte configuração:
cgi.fix_pathinfo = 1 cgi.fix_pathinfo = 1
cgi.force_redirect = 0 cgi.force_redirect = 0
Several people have found it useful on various environments including but not limited to IIS on windows as can be seen from the comments. Várias pessoas tiveram mais útil em vários ambientes, incluindo mas não limitado a IIS em janelas como pode ser visto a partir de observações. Thanks Cem for sharing! Graças Cem para a partilha!
BTW: Personally I use /archive/%postname%/ for my BTW: Pessoalmente eu uso / archive /% postname% / para a minha Stem Cell Research Blog A investigação sobre células estaminais blog without requiring any changes. sem que seja necessária qualquer alteração.
The greatest benefit is that you don’t have to embed index.php as part of URL, possibly slightly increasing your SERP. A maior vantagem é que você não tem que incorporar index.php como parte da URL, possivelmente aumentar ligeiramente o seu SERP.
Filed under Arquivado em Headline News Headline News , De How To How To , De Pro Blogging Blogging Pro , De Web , De Windows Janelas , De WordPress | |
| |
RSS 2.0 RSS 2,0 | |
Email this Article E-mail este artigo
You may also like to read Você pode também gosta de ler |





March 16th, 2005 at 12:19 pm 16 de março de 2005, às 12:19
I think you’re making a mistake discouraging the use if the date in URI’s. Penso que está a cometer um erro se desencorajar a utilização da data em URI's. Wordpress does not require post slugs to be unique. Wordpress não necessita de ser posto lesmas único. So if all you is ‘/archive/slug’ the chances of having a collision go increase greatly over time. Então, se você é '/ archive / slug "as chances de se ter uma colisão vão aumentar significativamente ao longo do tempo. Can you really be sure that in the next x years you’ll never recycle a post title, ever? Você pode realmente ter a certeza de que no próximo ano x você nunca reciclar um post título, cada vez?
Adding the category helps, of course, because then you’d have to duplicate the title and category to cause problems. Adicionando a categoria contribui, naturalmente, porque então você tem que duplicar o título ea categoria a causar problemas. But the date adds a unique identifier to the string that is guaranteed not to be repeated. Mas a data acrescenta um identificador único para a string que seja garantida a não ser repetido.
I use a month-year combination for my date field, figuring that within anygiven month I’m unlikely to repeat slugs. Eu uso um mês-ano combinação para o meu campo da data, que figuram no anygiven meses eu estou pouco provável que repita lesmas. But even that could be seen as too restrictive by some. Mas, mesmo que pudesse ser visto por alguns como demasiado restritivas.
You’re also overlooking that adding the date adds a sense of relevance to your links. Você está esquecendo também que a inclusão da data acrescenta um sentimento de relevância para seus links. Do i care about content more than a year old? Como me preocupar com conteúdo de mais de um ano de idade? No? Não? Then maybe I don’t need to follow that link i saved that’s dated 1999. Então, talvez eu não precisa seguir esse link que salvou i's datado de 1999.
March 20th, 2005 at 4:03 am 20 de março de 2005, às 4:03 am
Why I discourage embedding date in URL’s (including WordPress Permalinks and also other CMS) Porque me desencorajar encaixar na data da URL (incluindo WordPress Permalinks e também outros CMS)
The reasons I discourage date’s in a permalink are: It is redundant information as date is already part of the post information and need not be additionally within the url. As razões que desencorajam da data em uma permalink são: É redundante informações como data já faz parte do pós informações e não precisa de ser adicionalmente dentro do url. Search engines like google, which gives importance to words in URL’s will … Os mecanismos de pesquisa como o Google, que dá importância às palavras de URL's irá…
March 20th, 2005 at 4:05 am 20 de março de 2005, às 4:05 am
Squeg,
Please read my Por favor, leia o meu article on this topic artigo sobre este tópico to specifically address your concern. abordar especificamente a sua preocupação.
Let me know your thoughts. Deixe-me saber a sua opinião.
March 21st, 2005 at 9:53 am 21 de março de 2005, às 9:53 am
I definitely agree that the data is not always necessary in a url. Eu definitivamente concordo que os dados não é sempre necessário em uma URL. But I still think using it in most permalink structures does more good than bad. Mas eu continuo a pensar em usá-lo na maior parte das estruturas permalink faz mais mal do que bem.
I will concede that the date makes the url “uglier.” So I recommend using the most compact date structure you can to meet your needs. Vou admitir que a data faz com que o url "uglier." Portanto, eu recomendo o uso da mais compacto data estrutura para que você possa atender às suas necessidades. For some that may mean leaving it out. Para alguns pode significar que deixá-la para fora. For me it means domain/archives/MM-YYYY/slug. Para mim, isso significa domínio / arquivos / MM-AAAA / slug. I wish i’d left the word “archives” out as the date pretty much implies that. Eu não quero deixar a palavra "arquivos" para fora como a data que implica muito bonita.
I’m not sure that I follow how having the date in the address “poisons” the search engines. Não estou certo de que eu siga o modo como a data em que o endereço "envenena" os mecanismos de busca. I’d like to hear more clarification on what you mean by this. Eu gostaria de ouvir mais esclarecimentos sobre o que você quer dizer com isso.
Almost all non “time-sensitive” information really is time sensitive if it’s old enough. Quase todos os não "limite de tempo" informação é realmente tempo sensível quando é idade suficiente. The only real exceptions are pages where the content is continually updated/replaced with new information as it ages. As únicas excepções são reais páginas onde o conteúdo é atualizado continuamente / substituídas por novas informações, porque idades.
Take for instance, a guide to creating web-pages written in 1998. Tome por exemplo, um guia para a criação de páginas web, escrito em 1998. If it was well-written in 1998 it may have attracted many links, moving it up the search engines. Se foi bem escrito em 1998 poderá ter atraído grande número de ligações, movendo-a para cima os motores de busca. But if it has not been updated, then it is really quite behind the times with reguard to today’s best practices. Mas se ela não tenha sido actualizada e, em seguida, ela é, realmente, por detrás dos tempos de hoje com a reguard melhores práticas. It may still be technically accurate within the framework for which it was created, but it’s still dated. Ela ainda pode ser tecnicamente rigorosa, no âmbito da qual foi criada, mas ele ainda está datada. Someone looking at this page today needs to know right away that it’s old information and they should look elsewhere. Alguém olhando para esta página hoje precisa de saber desde já que ele é velho e informações que devem procurar em outro lugar.
As you can see from your own kubrik installation under wordpress, not every page actively displays the date in a prominent location. Como você pode ver a partir do seu próprio kubrik instalação sob wordpress, e não cada página activamente exibe a data em lugar bem visível.
It’s also worth mentioning that Wordpress (and probably other such systems) use the permalink you specifiy in your RSS as well as on your webpage. É também de referir que Wordpress (e provavelmente outros sistemas) usar o permalink você especificar no seu RSS, bem como na sua página web. Many RSS readers will use the permalink, if it’s identified, as a unique identifier for the item in the feed. Muitos leitores RSS irá utilizar o permalink, quando é identificado, como um identificador único para o item na alimentação animal. Reader software can use that unique ID to enable further functionality for managing feeds and posts. Leitor de software que pode usar ID único para permitir que novas funcionalidades para a gestão feeds e lugares. In these circumnstances it’s even more beneficial to ensure that your permalinks are unique. Nestes circumnstances é ainda mais benéfica para garantir que o seu permalinks são únicos.
In the end, my comment isn’t so much about any given individual leaving the date out of their permalink structure. No final, o meu comentário não é tanto sobre um determinado indivíduo deixando a contar da data de sua permalink estrutura. It’s about dissuading all users from including it without first considering both the pro’s and con’s of doing so. É sobre a dissuasão de todos os utilizadores, incluindo-lo sem primeiro considerando tanto o pro's e con's de fazê-lo. Using the date may not always seem necessary, but it does add a bit of “future-proofing” should your needs change. Usando a data maio nem sempre parecem necessárias, mas acrescentar um pouco de "à prova de futuro" deve mudar suas necessidades.
My advice to new wordpress users when choosing a permalink structure would be to stick with “ugly” links for awhile until they can really get a feel for how they’d like to use their blog. O meu conselho para novos usuários na escolha de um wordpress permalink estrutura seria a de manter a "feia" ligações por algum tempo até que possam realmente a ter uma idéia de como eles gostariam de usar seus blogs. You can always add permalinks without causing damage. Você sempre pode adicionar permalinks sem causar danos. But once you set them up, you can’t really change the system without causing a lot of stuff that used to work, to fail. Mas, uma vez que você configurá-los, você não pode realmente mudar o sistema sem causar um monte de coisas que é utilizado para o trabalho, ao fracasso.
March 23rd, 2005 at 6:12 pm 23 de março de 2005, às 6:12 pm
Actually, mainstream WP user and WP developers argue against NOT using a date structure in the permalinks. Na verdade, mainstream WP usuário e desenvolvedores WP argumentar contra uma data que não utilizem a estrutura de permalinks. This has been argued on the forums several times. Esta tem sido argumentado sobre os fóruns várias vezes.
Let’s say that on January 1st, 2004, you post “Happy New Year!”, and then on January 1st, 2005, you post “Happy New Year”. Digamos que em 1 de janeiro de 2004, você postar "Feliz Ano Novo!", E, depois, em 1 de janeiro de 2005, você postar "Feliz Ano Novo". You now have two posts at domain.com/happy-new-year and this sends your site into a spiral of chaos. Você tem agora dois lugares em domain.com / feliz ano-novo-e esta envia o seu site em uma espiral de caos. Having some sort of date structure will prevent this. Após ter algum tipo de estrutura irá impedir essa data.
March 24th, 2005 at 4:40 pm 24 de março de 2005, às 4:40 pm
@MacManx I realize that this is a situation we need to guard against. @ MacManx Sei que esta é uma situação que temos de temer. Wouldn’t it however be better to modify WordPress to ensure uniqueness of post slug? No entanto ele não iria ser melhor para modificar WordPress para garantir a unicidade de pós slug? Let the title be same. Deixe a ser o mesmo título. When WordPress realizes that the title is duplicate while publishing, it changes the post-slug to be unique by adding say date. WordPress Quando percebe que o título é duplicar enquanto edição, ela muda o pós-slug a ser único, acrescentando dizer data. However as the post slug is not viewed by the public at large it doesn’t affect the user and the viewer? No entanto, como o pós slug não é encarada pelo público em geral que não afecta o usuário eo telespectador?
What do you think. O que você pensa.
@Squeg Thanks for your informative comments. @ Squeg Obrigado por seus comentários informativos. I understand your concerns. Eu compreendo as suas preocupações. I have updated both my post to include a link to your comments, so people can read both and choose whatever suits them best. Eu tenho atualizado tanto o meu posto de incluir um link para o seu comentário, para que as pessoas possam ler e escolher quais os dois mais lhes convém.
Personally I like it simpler without the date as I have already stated, accepting the risk of duplicate post-slug. Pessoalmente, como é mais simples, sem a data como já afirmei, aceitando o risco de duplicação de pós-slug. I may actually do something to remedy the situation wrt. Eu maio realmente fazer alguma coisa para remediar a situação wrt. duplication in line with my idea described above. duplicação em consonância com a minha ideia acima descrita.
Thoughts? Pensamentos?
March 25th, 2005 at 7:58 am 25 de março de 2005, às 7:58 am
While i like the date for a lot of things, I do agree sometimes it would be nice to ditch it. Embora eu como a data para um monte de coisas, às vezes eu concordo que seria agradável a vala-lo. As we’ve both discussed, the biggest single inhibitor to leaving the date out of wordpress is that it doesn’t enforce unique post slugs. Tal como nós temos discutido tanto, o maior único inibidor da data da sua saída para fora do wordpress é que não se valer único posto lesmas. It does seem like it would be pretty simple to hack wordpress so that it guaranteed a unique post slug by checking the database for exising instances of it’s proposed slug and then appending a number or something to the end of the slug. Ele faz parecer que seria muito simples para cortar wordpress de modo a que seja garantido um único posto slug através da verificação da base de dados para exising instâncias do que é proposto lenta e, em seguida, anexar um número ou alguma coisa para o fim do slug. ( A warning at that time would be nice too, so you could modify the slug if you wanted. ) (A advertência nessa altura seria muito agradável, de modo que você possa alterar o slug se quisesse.)
I’d also like it to automatically truncate long slugs. Também gostaríamos que automaticamente para truncar longo lesmas. I know that might make it harder to determine what to type into the URL if you’re trying to guess (who really does that?) but it would definitely simplify the URLs. Eu sei que poderia tornar mais difícil de determinar qual o tipo para o URL se você está tentando adivinhar (que realmente faz isso?), Mas com certeza gostaria de simplificar as URLs. Some kind of options setting where you specified a maximum number of characters for the slug, would do the trick. Alguns tipos de opções onde você especificou um número máximo de caracteres para o slug, iria fazer o truque.
April 2nd, 2005 at 9:39 pm 2 de abril de 2005, às 9:39 pm
[...] rs, Link-blog03. [...] Rs, Link-blog03. April 2005 .htaccess 파일을 건드릴 필요 없는 방법 WordPress Tip on Permalink Options Comment RSS - [...] Abril de 2005. Htaccess 파일 을 건드릴 필요 없는 방법 WordPress Dica sobre Permalink Opções comentar RSS - [...]
April 9th, 2005 at 6:00 am 9 de abril de 2005, às 6:00 am
WordPress Permalinks Updated WordPress permalinks atualizada
I have updated my WordPress permalinks from: Eu atualizei meu WordPress permalinks a partir de:
/year/month/day/TITLE / ano / mês / dia / TÍTULO
to: a:
/archives/month/day/TITLE / arquivos / mês / dia / TÍTULO
I just think It would look alot better like that. Acabei de pensar-se-ia olhar muito melhor assim. That’s all :)…. That's all:)….
April 14th, 2005 at 6:51 am 14 de abril de 2005, às 6:51 am
My server is running on Windows Server (brinkter.com) so I guess I’m SOL regarding permalinks. Meu servidor está sendo executado no Windows Server (brinkter.com) assim eu acho que estou SOL quanto permalinks.
Any workarounds? Qualquer workarounds?
April 14th, 2005 at 7:04 am 14 de abril de 2005, às 7:04 am
edit: that should be “brinkster.com” on the above post. Verifique: que deveria ser "brinkster.com" sobre o post acima.
April 14th, 2005 at 12:56 pm 14 de abril de 2005, às 12:56 pm
@Carlos The ideas in this post works on Windows server too. @ Carlos As idéias neste post funciona em Windows Server também. In fact I have a copy of the site running on my Windows Apache server at Home. Na verdade eu tenho uma cópia do site Windows rodando em meu servidor Apache em casa.
This is the beauty of the idea. Esta é a beleza da idéia. It requires no special features enabled for it to work on any platform. Ele não requer recursos especiais para que permitiu a trabalhar em qualquer plataforma.
April 16th, 2005 at 4:47 pm 16 de abril de 2005, às 4:47 pm
Yes, but it seems you need to have Apache running. Sim, mas parece que você precisa para ter o Apache funcionando. What I meant was that brinkster runs Windows Server 2003 as their web server platform, as opposed to Apache for Windows. O que eu quero dizer era que brinkster executa o Windows Server 2003 como servidor web sua plataforma, em oposição ao Apache para Windows. It seems you need apache’s mod_rewrite for the permalink options to work. Parece que você precisa para o mod_rewrite do apache permalink as opções para o trabalho.
Thanks. Obrigado.
April 16th, 2005 at 11:22 pm 16 de abril de 2005, às 11:22 pm
@Carlos @ Carlos
No it doesn’t need apache running. Não, não precisa correr apache. To use my tip above you do not need mod_rewrite capability nor do you need .htaccess. Para usar a minha dica acima você não precisa nem o mod_rewrite capacidade de fazer o que você precisa. Htaccess. That is the beauty and simplicity of the solution. Essa é a beleza ea simplicidade da solução. Just try it. Experimente. It will work. Ele irá trabalhar.
April 17th, 2005 at 4:50 am 17 de abril de 2005, às 4:50 am
I get a “No input file specified.” when I try anything with the permalinks. Recebo uma "entrada no arquivo especificado." Quando eu tento alguma coisa com os permalinks.
April 17th, 2005 at 10:16 pm 17 de abril de 2005, às 10:16 pm
Am having issues too, trying to setup permalinks on Win2K3/IIS server. Também estou tendo problemas, tentando configurar a permalinks Win2K3/IIS servidor. It throws a 404 error, no matter what permalink structure i try! Ela lança um erro 404, não importa o que permalink estrutura tento!
April 17th, 2005 at 10:32 pm 17 de abril de 2005, às 10:32 pm
@Sajin & @Carlos Sajin & @ @ Carlos
Try these exactly as typed (in Options/Permalinks) and let me know if you still have problems. Tente estas exatamente como digitado (em Options / Permalinks) e deixe-me saber se você ainda tem problemas.
Structure: /index.php/archive/%postname%/ Estrutura: / index.php / archive /% postname% /
Category base: /index.php/category Categoria base: / / index.php / categoria
April 18th, 2005 at 6:00 am 18 de abril de 2005, às 6:00 am
Angsuman, tried again, making sure to copy-paste from your message. Angsuman, tentou novamente, tendo a certeza de copiar-colar a partir de sua mensagem. I still get a “No input file specified” message. Eu ainda obter uma "entrada no arquivo especificado" mensagem. I’m waiting a while now, to see if this is some sort of database or configuration issue that needs some time to set itself. Eu estou aguardando um tempo agora, para ver se esta é uma espécie de base de dados ou configuração questão que necessita de algum tempo para si própria.
For example, this is how one of my post links looks like now: Por exemplo, este é o modo como uma das minhas ligações pós olha como agora:
http://www.carlanga.com/blog/index.php/archive/using-crypto-hashes-salts-to-protect-database-privacy/ http://www.carlanga.com/blog/index.php/archive/using-crypto-hashes-salts-to-protect-database-privacy/
Does that look ok to you? Será que se olhar para você ok?
Thanks! Obrigado!
April 18th, 2005 at 6:06 am 18 de abril de 2005, às 6:06 am
Waited a while… added a post… no luck. Esperou um tempo acrescentado um posto…… nenhuma sorte. It doens’t seem like this will work on non-Apache boxes. Ela parece doens't como este irá trabalhar com não-Apache caixas.
April 19th, 2005 at 2:09 am 19 de abril de 2005, às 2:09 am
@Carlos I will check it out. @ Carlos Vou verificá-la. It should be possible as it is using something very basic. Deverá ser possível tal como está usando uma coisa muito básica.
The reason I don’t have IIS, even on my home machine, is due to security concerns. A razão pela qual eu não tenho o IIS, mesmo em minha casa uma máquina, é devido a preocupações de segurança.
BTW: Have you faced aany security related issue with your IIS deployment? BTW: Você já enfrentou aany questão de segurança relacionada com a sua implantação IIS?
April 19th, 2005 at 2:17 pm 19 de abril de 2005, às 2:17 pm
@angsuman, @ angsuman,
Not that I know of, as Brinkster handles all the hosting (shared hosting). Não que eu conheço, como Brinkster todas as alças de hospedagem (hosting partilhado). They should keep all patches up to date, etc. But I haven’t had any problems so far in the 3 or 4 years I’ve been with them. Eles devem manter-se actualizado todos os patches, etc Mas eu não tive problemas até agora no 3 ou 4 anos onde eu tenho com eles.
Just now I noticed they offered PHP/MySQL support and thus installed Wordpress. Basta agora eu reparei que ofereceu PHP / MySQL apoio e, portanto, instalado Wordpress. I was using Radio Userland, via FTP, before. Eu estava usando Radio Userland, via FTP, antes.
April 22nd, 2005 at 5:34 pm 22 de abril de 2005, às 5:34 pm
My server runs Win2000/IIS5 and no problem with “index.php” permalinks. Meu servidor executa Win2000/IIS5 e nenhum problema com "index.php" permalinks. Perhaps this is specifically a Windows 2003 or IIS6 problem? Talvez esta seja precisamente um Windows 2003 ou IIS6 problema?
I run Apache2 on the same server and that’s where all the WP1.5 installs are. Eu Apache2 correr no mesmo servidor e é aí que se instala todos os WP1.5. Permalink structure is defaulted to /%year%/%month%/%postname%/ for clarity. Permalink estrutura é a omissão /% year% /% mês% /% postname% / para a clareza.
April 24th, 2005 at 1:25 am 24 de abril de 2005, às 1:25 am
@rust, @ rust,
Do you have your Wordpress installation running on IIS5 or on the Apache server you have on the same machine? Você tem o seu Wordpress a instalação executando IIS5 ou sobre o servidor Apache você tem na mesma máquina?
April 25th, 2005 at 10:33 am 25 de abril de 2005 em 10:33 am
Just chiming in, but Carlos, any chance you have your index.php in a nonstandard location? Apenas em chiming, mas Carlos, você tem alguma chance seu index.php em um local não-padrão? Maybe the link that’s supposed to be pointing at your index file really isn’t? Talvez o elo que é suposto ser apontada em seu arquivo índice não é verdade?
If that doesn’t seem to be the issue and you’re not using a default theme, you might try switching back to classic or kubrik. Se isso não parece ser a questão e você não estiver usando um tema default, você pode tentar retornar para clássico ou kubrik. It’s *possible* that whatever theme you’re using doesn’t link to the code that parses the URL string aside from the standard GET stuff. * * É possível que o que você estiver usando o tema não está relacionado ao código que analisa a URL corda à parte o padrão GET stuff. Admittedly, I’ve not actually gone spelunking to find the code that’s supposed to be doing that parsing. Evidentemente que eu não tenha sido excluído spelunking para encontrar o código que é suposto ser a analisar o que fazer.
April 25th, 2005 at 3:49 pm 25 de abril de 2005, às 3:49 pm
Thanks Squeg. Graças Squeg.
I’m running the default theme… let me check if location has anything to do with this. Estou executando o tema do defeito… deixe-me verificar se localização tem nada a ver com isso. I have everything installed in a folder (www.carlanga.com/blog) but otherwise, it’s just as it came in the original file. Tenho tudo instalado em uma pasta (www.carlanga.com / blog) mas por outro lado, é apenas na medida em que entrou no arquivo original. I unzipped and FTP’d. I unzipped e FTP'd.
Thanks. Obrigado.
April 26th, 2005 at 10:17 am 26 de abril de 2005, às 10:17
Well that sounds like a pretty standard configuration. Pois bem que soa como uma bonita configuração padrão. Double-check the options screen in your dashboard to make sure that both location boxes point at the correct location. Confira a tela em seu painel opções para se certificar de que ambas as caixas localização ponto em local correto. You might (and i’m totally just shotgunning here) try setting the blog address to Você pode (e eu estou absolutamente justa shotgunning aqui) tente passar o endereço para o blog http://www.carlanga.com/blog/index.php instead of just /blog. em vez de apenas / blog.
Aside from that, I’d say it’s going to come down to server configuration. Além do que, eu diria que é que virá para baixo para servidor configuração. It’s possible the web server itself is choking on the oddly-formed URL. É possível o servidor web em si é sobre a asfixia curiosamente-formado URL. And at that point, I don’t really have a lot of good ideas. E, nesse ponto, eu realmente não tenho um monte de boas idéias. Honestly, what’s really wrong with “ugly” url’s anyway? Honestamente, o que há de errado com a realidade "feia" url's assim?
April 26th, 2005 at 8:45 pm 26 de abril de 2005, às 8:45 pm
@Squeg @ Squeg
> what’s really wrong with “ugly” url’s anyway? > O que está realmente errado com "feio" url's assim?
?p=3756 type of url’s don’t get much google-love (not to mention they are ugly) ? p = 3756 tipo de url's não ficam muito google-amor (para não falar que são feios)
April 28th, 2005 at 2:42 pm 28 de abril de 2005, às 2:42 pm
So, has anyone gotten this to work under IIS? Portanto, ninguém tem obtido esta a trabalhar sob o IIS?
April 29th, 2005 at 5:12 am 29 de abril de 2005, às 5:12 am
Not me, not yet. Nem eu, ainda não.
April 30th, 2005 at 7:01 am 30 de abril de 2005, às 7:01 am
Okay, last resort, you could try and get rewrites to actually work in IIS using something like this: Ok, último recurso, você pode tentar obter e regravações de realmente trabalhar em IIS usar algo como isto:
http://www.isapirewrite.com/
The lite version is free and might be enough for what you’re trying to do. A versão lite é gratuito e pode ser suficiente para o que você está tentando fazer.
April 30th, 2005 at 7:15 am 30 de abril de 2005, às 7:15 am
Here’s another possible option (free) Aqui está uma outra opção possível (grátis)
http://www.motobit.com/help/url-replacer-rewriter/iis-mod-rewrite.asp
May 1st, 2005 at 2:43 pm 1 de maio de 2005, às 2:43 pm
Thanks Squeg. Graças Squeg.
Carlos, did you have any luck with these solutions? Carlos, você tem alguma sorte com essas soluções?
May 4th, 2005 at 2:55 am 4 de maio de 2005, às 2:55 am
From what I see, I don’t think I could get either of those to work, as I’m on a hosted server. Pelo que vejo, não creio que eu poderia começar a trabalhar, quer das pessoas, como eu estou hospedado em um servidor. I’ll look closer at Isapirewrite and comment if anything good comes up. Eu vou procurar aproximar a Isapirewrite comentário se alguma coisa boa e vem para cima.
Thanks! Obrigado!
May 4th, 2005 at 5:16 am 4 de maio de 2005, às 5:16 am
How about changing your hosting provider Que tal mudar o seu provedor de hospedagem
I found Linux hosting providers are normally cheaper and comes with addl. Achei que o Linux provedores de hospedagem são normalmente mais baratos e vem com addl. capabilities like ssh, vps (some) etc. capacidades como ssh, VPS (alguns) etc
May 4th, 2005 at 3:04 pm 4 de maio de 2005, às 3:04 pm
I thought about that… but then my hosting provider offered me a nice plan with PHP that was competitive with everything else out there and I decided the hassle of switching wasn’t worth it. Eu pensei que… mas depois o meu provedor de hospedagem ofereceu-me um belo plano com PHP que era competitivo com tudo o resto lá fora, e eu decidi o aborrecimento de comutação não foi valeu a pena. I’d have to move all my data plus my email domain. Eu teria de passar todos os meus dados, mais o meu e-mail domínio.
They are about to start offering Linux hosting, so maybe all is not lost. Eles estão prestes a começar a oferecer hospedagem Linux, por isso talvez nem tudo está perdido.
May 9th, 2005 at 5:52 pm 9 de maio de 2005, às 5:52 pm
I have tried to search the site for the reason for using index.php as part of the permalink structure. Eu tentei o site de busca a razão para usar index.php como parte da estrutura do permalink. And of course it is hard to search for that since it is included on every page E é claro que fica difícil de pesquisa para que, uma vez que é incluído em cada página
May 9th, 2005 at 11:27 pm 9 de maio de 2005, às 11:27 pm
@Gary @ Gary
Finally a downside of using “index.php” as part of permalink Finalmente uma desvantagem de usar "index.php" no âmbito do permalink
Looks like however you succeeded. E parece, contudo, você conseguiu.
May 10th, 2005 at 1:17 pm 10 de maio de 2005, às 1:17 pm
Well, you won me over to the NoDateURI side. Pois bem, você venceu-me para o lado NoDateURI. Being a noob with php, apache, etc, I was reluctant to do anything that might ‘break’ my site. Sendo um noob com php, apache, etc, eu estava relutante em fazer tudo o que possa "quebrar" o meu site. But I backed up everything (including a spare copy of .htaccess) and said - go for it. Mas eu apoiar-se tudo (incluindo uma cópia de peças sobressalentes. Htaccess) e disse - ir para ela.
It worked!! Funcionou!
Then I realized all the links out in the wild world to my site were now probably broken. Então eu percebi todas as ligações no mundo selvagem ao meu site foram provavelmente já quebrado. And even though I like my 404 message - I prefer people not get it. E embora eu como a minha mensagem 404 - Eu prefiro as pessoas não percebem isso.
So, since I was being brave, I opened that back up copy of .htaccess and compared it with the new one. Portanto, desde que eu estava sendo corajoso, que me abriu cópia de back-up. Htaccess e comparou-o com o novo. I think I figured out how all the regular expressions were doing what they were supposed to do enought to try something bold. Eu acho que o quão todas as expressões regulares estavam fazendo aquilo que era suposto fazer alguma coisa para tentar enought negrito. I copied the lines that started with ^([0-9]{4}) and replaced the pattern at the end: Eu copiado as linhas que começou com ^ ([0-9] (4)) e substituiu o padrão no final:
`index.php?year=$1&monthnum=$2&day=$3&name=$4` `index.php? ano = $ 1 & monthnum = $ 2 & 3 & $ dia = nome = $ 4`
with just: com apenas:
index.php?name=$4` index.php? nome = $ 4 `
In other words I removed: Em outras palavras eu removido:
`year=$1&monthnum=$2&day=$3&` `ano = $ 1 & monthnum = $ 2 & day = $ 3 &`
A quick test shows it worked - now the old links on my pingbacks, tracklogs, etc still should work. Um rápido teste mostra que trabalharam - agora os velhos laços com o meu pingbacks, tracklogs, etc ainda deve trabalhar. I emphasize ’should’ since I really have no clue about this stuff since I am an insurance agent and not a professional propeller head. Sublinho "deveriam" desde que eu realmente não têm qualquer pista sobre esta matéria uma vez que sou um agente de seguros, e não um chefe profissional hélice.
May 10th, 2005 at 1:56 pm 10 de maio de 2005, às 1:56 pm
WordPress Permalink Options WordPress Permalink opções
As I read 2 posts on the Simple Thoughts blog about permalinks in WordPress I realized I wanted my permalinks to be ‘cleaner’. Como eu li 2 posts sobre os pensamentos simples blog sobre permalinks no WordPress, percebi que queria minha permalinks de ser "mais limpa".
In the first article, [Why I discourage embedding date in URL’s (including WordPress Permalinks and also other CMS)](htt… No primeiro artigo, [Porque me desencorajar encaixar na data da URL (incluindo WordPress Permalinks e também outros CMS)] (htt…
May 25th, 2005 at 10:16 am 25 de maio de 2005, às 10:16
[...] permalinks. [...] Permalinks. At the very least, include the post name. No mínimo, incluir o nome post. Another recommendation can be found here. Outra recomendação pode ser encontrada aqui. 05.25.2005 @ 10:15 AM by paul @ rwt [...] 05.25.2005 @ 10:15 AM por Paul @ rwt [...]
June 1st, 2005 at 10:56 am 1 de junho de 2005, às 10:56
Carlos:
I have just set up WP on Win2k3/IIS6, and was pleasantly surprised to find no problems with permalinks. Acabo de criar a Win2k3/IIS6 WP, e foi agradável surpresa de encontrar nenhum problema com permalinks. I have not installed any of the rewrite ISAPI filters. Eu não tenham instalado qualquer um dos filtros ISAPI reescrever. This site is for internal organizational use only, so is not accessable to the public — you’ll have to trust me that permalinks are working! Este site é apenas para uso interno organizacional, por isso não está acessível ao público - você terá que confiar-me que estão a trabalhar permalinks!
My guess is that you don’t have access to the php.ini file (I wouldn’t give access to all users if I was the host!) A minha suposição é que você não tem acesso ao arquivo php.ini (eu não iria dar acesso a todos os utilizadores se eu era o anfitrião!)
If I’m right, ask your host to turn on the cgi.fix_pathinfo option for PHP. Se eu estou certo, pergunte ao seu hospedeiro para ligar o cgi.fix_pathinfo opção para PHP. Even if they make the change in php.ini, it requires a restart of IIS to take effect, so they may not be able to do that immediately. Mesmo que eles tornam a mudança no php.ini, ele exige uma reinicialização do IIS para entrar em vigor, de modo que pode não ser capaz de fazer isso imediatamente.
If you begin hosting on your own server, and need to use IIS instead of Apache for some reason, try the suggestion on the WordPress Codex: Se você começar a hospedagem em seu próprio servidor, e precisa usar o Apache IIS em vez de, por algum motivo, tente a sugestão sobre o WordPress Codex: http://codex.wordpress.org/User:ringmaster/IIS
Hope that helps. Espero que ajude.
June 8th, 2005 at 10:13 pm 8 de junho de 2005, às 10:13 pm
Well, this discussion make me, a newbie in WP, confused. Pois bem, esta discussão tornar-me, um novato no WP, confuso. What should I choose? O que eu devo escolher?
June 8th, 2005 at 11:43 pm 8 de junho de 2005, às 11:43 pm
Choose the simple structure I suggested in the article. Escolha a estrutura simples, sugeri no artigo. It will take you about a minute to setup, very search engine friendly and requires no special capability of your server like mod_rewrite or htaccess. Irá demorar cerca de um minuto de setup, motor de busca muito amigável e não exige nenhuma capacidade especial de seu servidor como o mod_rewrite ou htaccess.
I summarized in the last line of the article: Eu resumidas na última linha do artigo:
Simply said this approach is without any drawbacks AFAIK. Basta dizer esta abordagem é, sem quaisquer inconvenientes AFAIK.
June 19th, 2005 at 9:40 pm 19 de junho de 2005, às 9:40 pm
For future reference, I was able to get permalink URL rewriting working in WordPress by creating a php.ini at my domain root with the following configuration: Para referência futura, eu era capaz de obter permalink URL reescrevendo trabalhando em WordPress, criando um php.ini em meu domínio raiz com a seguinte configuração:
cgi.fix_pathinfo = 1 cgi.fix_pathinfo = 1
cgi.force_redirect = 0 cgi.force_redirect = 0
June 20th, 2005 at 4:32 pm 20 de junho de 2005, às 4:32 pm
I have posted this query at WP Forum but received no response. Tenho postado essa pesquisa em WP Fórum, mas não obteve resposta.
Server: Linux/Apache Servidor: Linux / Apache
WP: 1.5.1 WP: 1.5.1
Themes: both my own and wordpress default. Temas: tanto o meu próprio e wordpress padrão.
Plugins:
Include page 1.0 Incluir página 1,0
Last Post Since 1.0 Último post desde 1,0
Static Front Page 1.0.2 Estático Front Page 1.0.2
I have edited my Permalink structure as: Eu tenho o meu editado Permalink estrutura como:
/%year%/%monthnum%/%day%/%postname%/ /% year% /% monthnum% /% day% /% postname% /
/category/%postname%/ / categoria /% postname% /
The links seems to be working fine but I get the following error at every post or category: As ligações parece estar a funcionar bem, mas eu obter o seguinte erro em cada posto ou categoria:
WordPress database error: [You have an error in your SQL syntax. WordPress database erro: [Você tem um erro em sua sintaxe SQL. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1] Verifique o manual que corresponde ao seu servidor MySQL versão para a direita sintaxe para utilizar a linha 1''próximo]
SELECT category_nicename FROM wp_categories WHERE cat_ID= SELECT category_nicename DA wp_categories ONDE cat_ID =
Then to make it simple I used: Depois de fazer coisas simples que eu usei:
/index.php/%year%/%postname%/ / / index.php /% year% /% postname% /
/index.php/archives/%post_id% / / index.php / archives /% post_id%
without .htaccess sem. htaccess
Same result. Mesmo resultado.
Any idea? Qualquer ideia?
June 20th, 2005 at 5:39 pm 20 de junho de 2005, às 5:39 pm
Look like a plugin related problem or related to the theme. Parecido com um problema relacionado plugin ou relacionados com o tema. Start by disabling all the plugins and see of the problem is solved. Comece por desativar todos os plugins e ver de que o problema seja resolvido. Then activate them one at a time to isolate the exact plugin causing it. Em seguida, ativá-las uma a uma hora exata para isolar o plugin causando-lo.
To test the theme try using the default theme and see if that solves the problem. Para testar o tema tente usar o tema do defeito e veja se isso resolve o problema.
This is not related to the permalink structure as far as I can tell from this description. Isso não está relacionado com a estrutura permalink tanto quanto posso dizer a partir desta descrição.
June 20th, 2005 at 10:51 pm 20 de junho de 2005, às 10:51 pm
Angsuman thanks for your response. Angsuman obrigado pela sua resposta. The error shows up despite the theme or the plugin used. O erro mostra-se apesar do tema ou o plugin utilizado. I have tested and got the same error using the WP default theme and without plugins. Eu tenho testado e obteve o mesmo erro usando o WP tema default e sem plugins. Weird isn’t? Estranho não é?
My server provider says the system is okay but I have no arguments to discuss the database error. Meu servidor provedor afirma que o sistema estiver correto, mas não tenho argumentos para discutir a base de dados erro. So, it would be great if someone explains what the error message means. Portanto, seria muito bom se alguém explica o que significa a mensagem de erro.
June 21st, 2005 at 12:19 am 21 de junho de 2005 em 12:19 am
@Stopthepress Check the version of MySQL installed on your site. @ Stopthepress Verifique a versão do MySQL instalado no seu site. You should be able to find it in the control panel or your hosting provider will be able to tell you. Você deve ser capaz de encontrá-la no painel de controle ou o seu provedor de hospedagem será capaz de lhe dizer.
AFAIK WordPress doesn’t support MySQL 5.x versions. AFAIK WordPress não suporta o MySQL 5.x versões. It works with 4.x versions. Ele funciona com versões 4.x.
June 21st, 2005 at 12:15 pm 21 de junho de 2005 às 12:15 pm
Angsuman,
MySQL version is 4.0.22-standard MySQL versão é 4.0.22-standard
June 21st, 2005 at 12:46 pm 21 de junho de 2005, às 12:46 pm
This is not linked to permalinks at all. Isto não está ligada ao permalinks a todos. Comment out references to the_category() function everywhere in your theme. Comentar as referências a the_category () funcionar em todo o seu tema.
Then your site will work. Em seguida, o site irá funcionar.
However it shouldn’t have been a problem in the first place. No entanto, não deve ter sido um problema em primeiro lugar. Search/Ask in WP forum if your version of MySQL is supported. Pesquisa / Venda WP no fórum se a sua versão do MySQL é suportado.
Re-instllating often helps with such spurious errors. Re-instllating muitas vezes contribui com esses falsos erros. That is an option too. Essa é uma opção também.
June 21st, 2005 at 10:44 pm 21 de junho de 2005, às 10:44 pm
Done!!! Feito!
Deleting the ‘the_category()’ function at the theme’s index.php solved the problem. Excluindo o "the_category ()" em função do tema do index.php, o problema foi resolvido. Fortunately the ‘the_category()’ function is not so important. Felizmente o 'the_category ()' função não é tão importante.
The question is why the_category() function caused that weird behaviour in my theme and in the WP Default theme as well? A pergunta é por isso que the_category () função que causou comportamento estranho no meu tema e no WP Default tema tão bem? Hmmm if I get some spare time I will re-install to see what happen. Hmmm se obter algum tempo livre eu vou voltar a instalar para ver o que acontecerá.
Thanks a lot Angsuman for your valuable comments. Thanks a lot Angsuman para seus valiosos comentários. Will post a link to this thread at the WP Forum in order to help other users suffering “Permalinkcitis”. Vai postar um link para esta thread no Fórum WP, a fim de ajudar os outros utilizadores sofrimento "Permalinkcitis".
July 1st, 2005 at 10:33 am 1 de julho de 2005 em 10:33 am
Genius here: Genius aqui:
I already gave up de permalink-stuff, but today i upgraded wp to 1.5.1.3 . Eu já desistiu de-permalink coisas, mas hoje eu adaptadas para wp 1.5.1.3.
I thought lets give it a try. Eu pensei que permite que experimentá-lo.
I followed Cems advice and voila it is working! Eu seguido Cems conselhos e voila que está trabalhando!
without the .htacces, because i don’t have that file in my (shared) webspace. sem o. htacces, porque eu não tenho que no meu arquivo (partilhados) webspace.
Big thanks to Cem. Big graças a Cem.
July 8th, 2005 at 11:46 pm 8 de julho de 2005, às 11:46 pm
Just wanted to add my 2 cents, the trick Cem said seemed to work for me. Apenas queria acrescentar meus 2 cêntimos, o truque Cem disse parecia a trabalhar para mim. Specifically: Especificamente:
Running Win2k3 on IIS6 and now it works perfectly fine. Correndo Win2k3 em IIS6 e agora ele funciona perfeitamente bem. Thanx a bunch. Thanx um cacho.
July 11th, 2005 at 3:08 pm 11 de julho de 2005, às 3:08 pm
I didn’t believe it would work, but like CEM (comment #44) and others said, this did the trick for me on Win2003 and IIS. Eu não acredito que seria trabalhar, mas como o CEM (comentário # 44) e outros disseram, este fez o truque para mim em Win2003 e IIS.
August 2nd, 2005 at 12:22 pm 2 de agosto de 2005, às 12:22 pm
Thank you so much! Muito obrigado! I’ve been looking around forever for a solution to the IIS/Wordpress/Permalinks problem, and the php.ini thing worked! Eu tenho sempre olhando em volta de uma solução para o IIS / Wordpress / Permalinks problema, e no php.ini coisa funcionou! I’m so happy, thank you all so much. Estou tão feliz, muito obrigado a todos.
August 9th, 2005 at 5:41 pm 9 de agosto de 2005, às 5:41 pm
thanks, the tip about php.ini on iis saved me from tearing any more hair out. agradecimento, a dica sobre a php.ini iis salvou-me de qualquer lacrimejar mais cabelo para fora.
October 8th, 2005 at 11:33 pm Outubro 8o, 2005, 11:33 pm
[...] Wordpress is sooooooo cool. [...] Wordpress é sooooooo cool. Just changed the url’s to be “search engine friendly.” I was researching how to do this manually, but then ran across a link from one of Wordpress’ support pages, which mentioned to change the options in the local Wordpress install’s permalinks section, add some code to the .htaccess file, and that was it! Apenas mudou a url's de ser "motor de busca amigável." Eu estava pesquisando sobre como fazer isso manualmente, mas depois correu em toda uma ligação de um de Wordpress' apoio páginas, que referiu a mudar as opções no local da instalação Wordpress permalinks seção, adicione o código a alguns. htaccess arquivo, e que foi ele! How easy. Como fácil. I’ll probably donate some money to them soon. Eu vou provavelmente doar algum dinheiro para eles em breve. They’ve built a fantastic tool. Eles construíram uma fantástica ferramenta. [...]
October 20th, 2005 at 7:46 pm Outubro 20o, 2005 em 7:46 pm
OMG HOLY 5H17 OMG HOLY 5H17
CEM, you rule CEM, você regra
Thank you, I spent a couple days looking for this work around (came across this post more than once, just was too lazy to read the comments before Muito obrigado, eu passei dois dias à procura de um trabalho em torno deste (teve acesso a este posto por mais de uma vez, foi apenas com preguiça de ler os comentários antes de
)
u guys rock u guys rock
October 20th, 2005 at 8:05 pm Outubro 20o, 2005 em 8:05 pm
has anyone noticed their admin console stop doing page redirects after executing actions since they installed the php.ini file to fix permalink? ninguém tenha notado a sua admin console parar de fazer página redireciona após executar acções, uma vez que instalado o arquivo php.ini para fixar permalink?
I imagne it’s just something I’m missing from my php.ini… but I don’t know what to put in there Eu imagne é apenas algo que estou ausente do meu php.ini… mas eu não sei o que existe para colocar em
this happened to anyone else? isto aconteceu a mais alguém?
October 26th, 2005 at 7:18 am Oct 26, 2005, 7:18 am
Hi Oi
maybe it’sa good tip to know that when you use other seperation characters like: . talvez é uma boa dica para saber que quando você usar outros personagens como a separação:. , | + instead of the / or - you can get serious errors , | + Vez das / ou - você pode obter erros graves
so: /%year%.%monthnum%.%day%.%postname%.%post_id% assim: /% year%.% monthnum%.% day%.% postname%.% post_id%
does not work, but não funciona, mas
/%year%-%monthnum%-%day%-%postname%-%post_id% /% year% -% monthnum% -% day% -% postname% -% post_id%
does… faz…
October 31st, 2005 at 9:29 pm Outubro 31o, 2005 em 9:29 pm
It worked! Funcionou! Thanks, really! Obrigado, realmente!
November 9th, 2005 at 3:30 am 9 de novembro, 2005 em 3:30 am
Using the structure you suggested solved all my problems of no comments showing and categories not working. Utilizando a estrutura que você sugeriu resolvidos todos os meus problemas de nenhum comentário e mostrando categorias não funciona. I don’t really know php and am new to this kind of blogging, but I’m so relieved and so thankful I could dance! Eu realmente não sei php e sou novo a este tipo de blogs, mas estou tão aliviado e agradecido por isso eu poderia dançar!
Thanks from Italy Graças a partir de Itália
November 24th, 2005 at 1:50 am 24 de novembro de 2005, às 1:50 am
I suggest using the default structure: /index.php/%year%/%monthnum%/%day%/%postname%/ because this is computable with the other archive URL. Eu sugiro que utilizam o padrão estrutura: / / index.php /% year% /% monthnum% /% day% /% postname% / porque este é computável com o outro arquivo URL. For example /index.php/%year%/%monthnum%/ shows all posts in that month and /index.php/%year%/ shows all posts in that year. Por exemplo / index.php /% year% /% monthnum% / mostra todos os lugares em que mês e / index.php /% year% / mostra todos os lugares em que ano. /index.php/%year%/%monthnum%/%day%/%postname%/ seams like the logical extension to me. / / index.php /% year% /% monthnum% /% day% /% postname% / costuras como a extensão lógica para mim.
November 27th, 2005 at 10:16 pm 27 de novembro de 2005, às 10:16 pm
Any suggestions for fixing this when the Windows web host provider won’t modify php.ini with the fix above? Todas as sugestões para a fixação presente quando o Windows host provedor não irá modificar php.ini com a correção acima? WebHost4Life can’t/won’t make the change, and it doesn’t look like they’ll install the ISAPI filters referred to above, either. WebHost4Life não pode / não vai fazer a mudança, e ele não se parecem com eles a instalar filtros ISAPI acima referidos, quer.
November 27th, 2005 at 11:41 pm 27 de novembro de 2005, às 11:41 pm
How about uploading the file php.ini to your home directory yourself instead of relying on your web host? Que tal fazer o upload do arquivo php.ini para o seu diretório home si próprio em vez de confiar em seu host?
December 3rd, 2005 at 12:47 am 3 de dezembro de 2005, às 12:47 am
[...] You can also try to follow blog.taragana.com by putting a php.ini file in your root folder. [...] Você também pode tentar seguir blog.taragana.com colocando um arquivo php.ini na sua pasta raiz. Have a look at their update 3 it may be of some help. Olhe para atualizar os seus 3, pode ser de alguma ajuda. [...]
December 8th, 2005 at 10:38 pm 8 de dezembro de 2005, às 10:38 pm
I am attempting to get /archive/%postname%/ to work without having to write to WP’s .htaccess, but ran into a few problems. Estou a tentar obter / archive /% postname% / para trabalhar sem ter de escrever a. Htaccess do WP, mas correu em alguns problemas. Allowing wp to write the code to WP’s .htaccess file overrides my RewriteEngine canonical redirect in my domain root .htaccess, that automatically parses all non-www versions of my domain to the www version to avoid possible duplicate content penalties. Wp permitindo a escrever o código para WP's. Htaccess arquivo que sobrepõe o meu Regravar mecanismo canônica redirecionamento no meu domínio raiz. Htaccess, que analisa automaticamente todas as versões não-www do meu domínio para a versão www conteúdo duplicado para evitar possíveis sanções. This problem only effects my /blog/ folder. Este problema só meu efeitos / blog / pasta.
Adding php.ini to my domain root with: Adicionando php.ini para o meu domínio raiz com:
cgi.fix_pathinfo = 1 cgi.fix_pathinfo = 1
cgi.force_redirect = 0 cgi.force_redirect = 0
Doesn’t work. Não funciona. Changing /index.php/archive/%postname%/ to /archive/%postname%/ results in “Not found on server” errors for all my other blog pages. Mudar / index.php / archive /% postname% / para / archive /% postname% / resulta em "Não encontrado no servidor" erros de todos os meus outros blog páginas.
I tried adding a similar RewriteEngine code to WP’s .htaccess, but that didn’t work. Tentei acrescentar um código para Regravar mecanismo semelhante. Htaccess do WP, mas que não funcionam.
December 31st, 2005 at 10:01 pm 31 de dezembro de 2005, às 10:01 pm
I think you would be better of including index.php in your path like this blog. Penso que seria melhor do index.php incluindo no seu percurso como este blog.
January 5th, 2006 at 8:34 am 5 de janeiro de 2006 em 8:34 am
I’ve got a wordpress site running on Win2K/IIS5 (it’s an internal demo @ work, so not a huge choice of operating system and server). Eu tenho um site rodando em wordpress Win2K/IIS5 (é uma demonstração @ trabalho interno, pelo que não uma enorme variedade de sistemas operacionais e servidores).
Yesterday i set up permalinking with the following structure (and the php.ini file) and it worked fine: Ontem, criado permalinking com a seguinte estrutura (e no arquivo php.ini), e isso funcionou bem:
Structure: /index.php/%year%/%monthnum%/%day%/%postname%/ Estrutura: / / index.php /% year% /% monthnum% /% day% /% postname% /
Category Base: /index.php Categoria Base: / index.php
Today i’ve tried installing a plugin (wp-hashcash), and now i find that my structure doesn’t work and i get loads of 404 errors. However my categories do still work.
So I tried rolling back the only thing that had changed and uninstalled the plugin, but that doesn’t fix the problem.
Would be grateful for any ideas at all, i’m completely at a loss. I’m wondering if the act of installing the plugin has made some irrevocable change, but i can’t see how..
January 5th, 2006 at 9:42 am
Stephen,
As I mentioned in the post above please use the following structure:
I do not encourage embedding date information in permalinks and Google engineer Matt Cutts agrees with me.
Angsuman
January 14th, 2006 at 11:35 am
Hey everyone. So after wrestling with this for a long time (Window XP sp2, IIS 5.1, PHP latest, WP 2.0, MySql 5) I started digging to figure out why my permlinks weren’t working (after following all your good instructions).
I ran into this msft article: http://www.microsoft.com/technet/security/tools/urlscan.mspx
I installed the newer version of urlscan, and turned on the following line in the ini file:
AllowDotInPath=1 ; if 1, allow dots that are not file extensions
(the ini file is in : D:\WINDOWS\system32\inetsrv\urlscan on my machine)
Then refreshing works (be sure to re-install urlscan and restart iis or reboot in order to get it to see the new ini info).
I hope that helps those who are still stuck with windows + iis & permalinks.
Cheers, Felicidades,
Danny
February 19th, 2006 at 2:13 am
[...] Secara otomatis WordPress dapat me-generate file .htaccess namun ada semacam bug -mungkin- yang menyebabkan permalink tidak berjalan, dari hasil search sama mbah Google saya dapat bbrp petunjuk antara lain di Using_Permalinks, wordpress-tip-on-permalink-options, How to configure WordPress to create search engine friendly URLs for permalinks? akhirnya dari petunjuk yang ada saya menambahkan kode berikut pada file .htaccess # BEGIN WordPress [...]
March 5th, 2006 at 11:20 pm
Kewl blog you got goin on up here.
Peace, JiggyWittit
May 5th, 2006 at 6:11 pm
[...] Das halten wir mal schnell fest. In der Wordpress FAQ wird beschrieben wie man auch ohne mod_rewite permalink-ähnliche links in wp-erhält. Mehr dazu auch hier [...]
May 7th, 2006 at 3:06 pm
I have wordpress 1.5.2 installed on window. My attempt to create permalinks without mod_rewrite using a php.ini file worked. see my blog at: http://www.multiculturaladvantage.com/ diversity-recruiting/
However, my posts are striped of all style sheet information. See a sample post: http://www.multiculturaladvantage.com/ diversity-recruiting/ index.php/ archive/ test-shaker-receives-top-honors-for-excellence-in-recruitment-advertising/
I have limited prgramming knowledge and no idea what it means or how to correct it. Does anyone have ny ideas?
Thanks Tracey
May 8th, 2006 at 11:31 am
Check how you specified your CSS file. It should be absolute path and not relative path (as it is most likely now).
July 21st, 2006 at 8:07 pm
All I know is - this is the ONLY thing that has worked for me to change my permalinks from the default to pretty. I used my postname only.
Thank you, thank you! No amount of reading I was doing was working for me and I finally found a link here from WP codex.
July 22nd, 2006 at 4:38 pm
Wow thanks so much for this tip. It is incredibly simple and works great. Just had to make sure the php.ini file is in the domain root. I used the following custom structure: “/index.php/%year%/%monthnum%/%postname%/”, on a Windows IIS 6.0 acct on shared hosting. The only thing I’m worried about now is if WP or the PHP installation on my host gets upgraded and this stops working in the future… THANKS!
July 22nd, 2006 at 7:52 pm
It will continue to work.
July 27th, 2006 at 8:12 am
Christy & Parker,
I am happy that it worked for you. Feel free to spread the word in your blogs
– Angsuman
August 3rd, 2006 at 8:05 pm
[...] I got stuck at this point because the resources I was finding online indicated that to do this on IIS, I needed to muck around with ISAPI rewriting. I can’t do that in a shared hosting environment, so I was in limbo until I found this link through the WordPress Codex. [...]
August 24th, 2006 at 10:06 pm
I am glad that my suggestion was helpful.
August 30th, 2006 at 8:04 am
[...] I finally managed to change my permalinks structure…from downright ugly (ie. http://www.sooyin.com/?p=296578907243 ) to something more bearable. Thanks to this tip! [...]
August 31st, 2006 at 5:25 am
[...] [...]
August 31st, 2006 at 10:00 am
@Cem
Yes it was. Thanks. Obrigado.
September 4th, 2006 at 7:49 pm
[...] I’ve made a couple of other small changes to the site as well; The article and page links have been altered to a more aesthetically pleasing format using Angusman’s Advice posted here and I’ve added a link exchange section to the sidebar with a link to Matt’s Blog ‘Abort. Retry. Fail?‘. Matt is the author of the Article on how to remove the Sony Ericsson file manager I linked to in my last post and his stuff is well worth a read. [...]
September 11th, 2006 at 9:44 am
I still can’t get the friendly permalinks to work. I am on win 2003, IIS 6, PHP 5. I have a dedicated server.
I tried all tricks you saif here but it still printing “no input file specified”.
If anyone know how to get it to work, please let me know!
Thanks,
Stephane
September 12th, 2006 at 4:13 pm
Finally, I got it to work on IIS 6 and win 2k3 with this:
http://www.nathanm.com/2006/07/02/wordpress_permalinks_removing_indexphp_in_iis.html
The plugin is here:
http://www.nathanm.com/wordpress-plugins/
Stephane
October 14th, 2006 at 5:58 am
[...] This reference from Cem via http://blog.taragana.com/index.php/archive/wordpress-tip-on-permalink-options/ [...]
October 30th, 2006 at 2:43 am
[...] XDForum (example: Anaconda Forum) is a nice basic forum software which works seamlessly with WordPress blogs (download our free theme and plugins). Unfortunately it works out-of-the-box with default permalinks only. Most site today use nice permalinks. This mini-tutorial will teach you how to use XDForum with nice permalinks (how to enable; tips and more). [...]
December 18th, 2006 at 5:32 am
I am trying to get some sort of friendly article names to work on my site http://www.fancyacar.co.uk at the moment. I have already made the rewrite rules in .htaccess file but i cant find a way to deal with duplicate post titles. Maybe i could just append a number to the post like http://www.fancyacar.co.uk/hello-world and e http://www.fancyacar.co.uk/hello-world-2 ?? ? This will ensure that no post titles are the same, wouldnt it? What do you guys think?
April 5th, 2007 at 10:23 am
Wordpress adds the number by default in URLs to duplicate post name
April 11th, 2007 at 5:21 am
I had started my blog with Default format and then changed to Date and Name based.
But now it is custom format %category%/%postname% which I think is good in terms of search engine.
Not very sure!!
May 29th, 2007 at 5:33 am
Thanks for this great info. I have changed the settings of my permalink and hopefully it will attract more search engine to come…
Thanks…
June 5th, 2007 at 1:42 am
Thanks for the information - very helpful when changing my permalink structure. A caution for beginners however: be careful about using %category% unless you are sure you will not change your categories, as doing so will break some of your permalinks. I wrote about this in my blog: http://www.scratch99.com/2007/06/wordpress-permalink-customisation-caution-for-beginners/
As you can see I no longer use category
July 17th, 2007 at 5:01 am
I prefer to have only postname after domain name.fellow webmasters like short urls to link to and i am as a visitor much fond of short urls.
July 25th, 2007 at 9:58 pm
I look at dates in the URL when reading search results to find articles that are most recent.
August 27th, 2007 at 12:18 pm
I used your advice a year ago when I first set up WordPress on our Compulabel site and everything worked fine. The categories of the blog worked with the extra php.ini files to my blog root folder.
However, recently my hosting company updated their version of PHP on the server from PHP5.1.1 to PHP5.2.3. The category pages no longer display properly.
If you visit a category in our blog, like…
Compulabel Labels you’ll see (as of this date), you’ll get an error message…
CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers.
If tried everything, including uploading the entire latest version of Wordpress 2.2 and that hasn’t resolved the problem.
Does anyone have a solution to this problem, short of transferring our site to another server that has the older version of PHP software installed on it (which I don’t want to do)? Thanks Obrigado
August 27th, 2007 at 1:56 pm
Try updating your permalinks in Options->Permalink
Then look at your .htaccess file to see if something is screwed up.
August 27th, 2007 at 1:57 pm
Also you can try creating a php.ini at my domain root with the following configuration:
cgi.fix_pathinfo = 1
cgi.force_redirect = 0
August 29th, 2007 at 10:13 pm
Thanks for the feedback, but the PHP.ini is correct.
I forgot to mention that I have my version of Wordpress hosted on a shared hosting company and it runs on a Windows IIS. So I’m not able to access the .htaccess file.
I’ve tried UPDATING the permalinks files and some become corrected and others don’t.
It seems Wordpress add /category/ or /archive/ to some of the Permalinks and it’s not always the same. Especially for the PREVIOUS links when a page is too full.
Also, when you create a new CATEGORY, and add a post to it. And click on the new Category link, it doesn’t seem to find the category or the link.
Feel free to explore the blog at
Compulabel and you’ll see my frustration.
Do you think the PHP incompatibility issue could be the issue? It seems like a long-shot but that was upgraded right around the same time the perma links started going bad.
Any other suggestions would be appreciated.
Thanks Obrigado
October 27th, 2007 at 6:58 am
Its workking…Great tip for wordpress and seo begineers…
November 26th, 2007 at 11:06 am
hi , Thanks i was fighting with this Ugly Permalink problem of my blog http://www.shankerbakshi.com . Thanks i got the solution here. Thanks again, you can’t imagine how happy i am to see permalink working on my blog
December 16th, 2007 at 6:46 am
Seconding Shanker Bakshi’s sentiments, I also was battling the permalink problem for about two evenings, on and off.. reloading probably 50 times, and slipping the php.ini code definitely saved my sanity, so thanks for making my day!
December 18th, 2007 at 12:57 pm
I DO NOT LIKE INDEX.PHP WUWUWUWU….
December 23rd, 2007 at 7:54 am
The new Wordpress has features built in to do that sort of stuff, what I find works well is /%postmonth%/%postname%.html , or similar
January 3rd, 2008 at 6:42 pm
Well, since everyone else seems to be sh!tting all over your post, I\’m going to go ahead and congratulate you, as it has helped me alot and I\’ve now got my blog working the way I want it. Thank you very much!
January 12th, 2008 at 6:19 pm
Thank you for this post! I have been really dragging my feet about changing my URL structure, I followed your directions here and it was almost too easy!
Thanks again Obrigado novamente
February 17th, 2008 at 3:50 am
Thank you. Obrigado. Very beatiful post.
February 27th, 2008 at 5:05 pm
Damn, good stuff… That helped and took me a while
February 29th, 2008 at 12:16 pm
Worked great - thanks so much! After several failed attempts with some plugins, this was the exact simple, effective fix we needed.
March 29th, 2008 at 11:29 pm
The PHP.ini trick stopped working with WordPress 2.5. Any suggestions?
April 13th, 2008 at 6:04 pm
Anyone home?
May 11th, 2008 at 2:40 pm
Awesome this worked for me. Thank you to people who share and respond.
cgi.fix_pathinfo = 1
cgi.force_redirect = 0
in php.ini file.
Wordpress shuld detect this in their next version.!
May 21st, 2008 at 4:20 pm
Thanks, this worked out fine!
May 22nd, 2008 at 3:37 pm
Using WP v2.5 and it worked out fine…Keep up the good work!