logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

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.
Post new topic   Forum Index -> Other Software View previous topic :: View next topic
Reply to topic   Topic: Wordpress Rewrite
Author
electron



Joined: 15 Jun 2011
Posts: 1

PostPosted: Wed 15 Jun '11 19:10    Post subject: Wordpress Rewrite Reply with quote

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: 7373
Location: Germany, Next to Hamburg

PostPosted: Thu 16 Jun '11 22:23    Post subject: Reply with quote

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

PostPosted: Thu 30 Jun '11 4:21    Post subject: Reply with quote

IS this happening because I didn't update my wordpress?
Back to top
reds88



Joined: 30 Jun 2011
Posts: 3

PostPosted: Fri 01 Jul '11 20:36    Post subject: Reply with quote

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: 7373
Location: Germany, Next to Hamburg

PostPosted: Wed 06 Jul '11 17:01    Post subject: Reply with quote

Maybe this a also helpful http://wordpress.org/extend/plugins/redirection/
Back to top


Reply to topic   Topic: Wordpress Rewrite View previous topic :: View next topic
Post new topic   Forum Index -> Other Software