ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

rewrite url

May 27, 2009 6:05pm

Subscribe [3]
  • #1 / May 27, 2009 6:05pm

    roman-vc

    46 posts

    Hi,
    i switched providers for several reasons. My new provider doesn’t support mod_rewrite, so i had to go back to using “index.php?” as part of the urls.
    In order to keep the incoming links intact i’d have to rewrite all the 7.000 old urls in htaccess by hand now.
    Is there a way to simply having the incoming links rewritten by using some piece of code insteaed of having to rewrite everything by hand?
    Old urls: berlinista.com/... new ones: berlinista.com/index.php?/...
    I know that there must by some way using “regular expressions”, but i don’t know how.
    Please help.
    Roman

  • #2 / May 28, 2009 12:23am

    hermanobrother

    44 posts

    I need something similar. Hope someone gives you an answer.

    Do you have all the previous URLs listed in a file? You might not need regular expressions if you’ve got the whole bunch. Just some find / replace.

    But what do I know. Good luck, I need your solution too.

    : )

  • #3 / May 28, 2009 4:21am

    Ingmar

    29245 posts

    Perhaps you can show us what you have so far, and we can take it from there? As I’ve said, there are dozens of tutorials out there that deal with that thing. Roman, when you say your host doesn’t support mod_rewrite you don’t mean “at all”, do you? Because obviously these regular expression based rewrites would make use of the Apache module, too.

  • #4 / May 28, 2009 1:13pm

    roman-vc

    46 posts

    Hi,
    the module isn’t installed and they don’t allow it.
    Roman

  • #5 / May 28, 2009 3:05pm

    Ingmar

    29245 posts

    At all? In that case, I am afraid, I don’t see how you could rewrite your incoming links, I am afraid. I should have thought it was pretty standard these days. Didn’t you say the only allowed a certain amount? Or was that some other site / host?

  • #6 / May 28, 2009 3:34pm

    roman-vc

    46 posts

    Hi, i’ve already started to rewrite the urls one by one.
    At first it looked like they only allow a certain amount until i found out that they don’t support mod_rewrite on their managed servers at all.
    Well - shit happens. Will take me about a week, then i’m all set.
    Thanks’ for your support.
    Talk to you soon.
    Roman

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases