Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Wordpress Rewrite |
|
Author |
|
electron
Joined: 15 Jun 2011 Posts: 1
|
Posted: Wed 15 Jun '11 19:10 Post subject: Wordpress Rewrite |
|
|
Hi,
I've added a plugin in Wordpress that modifies the permalink structure by adding "/comment-page-X" after the post. Now google webmaster gives me a lot of errors.
I've been reading and I understood that I need a rewrite script. I tried to do it myself but it didn't work, because I didn't properly understand the syntax of the rewrite engine.
Could you please help me with the rewrite code for redirecting(301 Redirect for google webmaster) a link like this one:
http://site.abc/2011(year)/11(monthnum)/11(day)/the-post(post name)/comment-page-X(a number starting from 1)
to this form:
http://site.abc/2011(year)/the-post(post name)/comment-page-X(a number starting from 1)
I'm sorry for my bad english, but if you don't understand something please tell me and I'll try tot explain better.
Many thanks,
Electron |
|
Back to top |
|
James Blond Moderator

Joined: 19 Jan 2006 Posts: 7405 Location: EU, Germany, Next to Hamburg
|
Posted: Thu 16 Jun '11 22:23 Post subject: |
|
|
AFAIK Only wordpress can do that. Since the normal rewrite puts everything non existing through index.php
Code: |
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
|
best places to ask rewrite questions are
forum.modrewrite.com
or if you speak german
forum.modrewrite.de/mod-rewrite-code.html |
|
Back to top |
|
ricaluanna
Joined: 30 Jun 2011 Posts: 1
|
Posted: Thu 30 Jun '11 4:21 Post subject: |
|
|
IS this happening because I didn't update my wordpress? |
|
Back to top |
|
reds88
Joined: 30 Jun 2011 Posts: 3
|
Posted: Fri 01 Jul '11 20:36 Post subject: |
|
|
you should try to update it... I am sure that there is the issue
online pharmacy no prescription
Last edited by reds88 on Tue 26 Jul '11 20:08; edited 1 time in total |
|
Back to top |
|
James Blond Moderator

Joined: 19 Jan 2006 Posts: 7405 Location: EU, Germany, Next to Hamburg
|
|
Back to top |
|
|
|
|
|
|