Forums

mod rewrite - no index.php - handle incoming (3 posts)

  1. cmiwebstudio
    Member
    Posted 2 weeks ago #

    ok, so i removed that ugly index.php getting in the way, but wait... i have posts all around the net pointing to urls with it in... OH NO... how do I perm redirect incoming links to redirect to the NON index.php version url?

    RewriteRule /blog/wp-(.*) /blog/wp-$1 [I,L]
    RewriteRule /blog/(.*)$ /blog/index.php/$1 [I,L]

    ??????????

  2. samboll
    moderator
    Posted 2 weeks ago #

  3. cmiwebstudio
    Member
    Posted 2 weeks ago #

    i'm sorry, but that really didn't help me or answer my question from what I see. also, the plugin errors and doesn't work with the latest version when I tested.

    I'm asking for a mod rewrite command to redirect visitors that attempted to use an incoming link that was like such...

    domain.com/blog/index.php/blah
    to the domain.com/blog/blah.

    again, i've already created a rule that works this way
    RewriteRule /blog/wp-(.*) /blog/wp-$1 [I,L]
    RewriteRule /blog/(.*)$ /blog/index.php/$1 [I,L]

    i simply need to create another rule that redirects those that are using the old links.

Reply

You must log in to post.

About this Topic