Apache2 Permanent Redirect The Next CEO of Stack Overflowapache2 restart?Default handling for...

Can I board the first leg of the flight without having final country's visa?

Point distance program written without a framework

"Eavesdropping" vs "Listen in on"

Why do we say 'Un seul M' and not 'Une seule M' even though M is a "consonne"

What happened in Rome, when the western empire "fell"?

My ex-girlfriend uses my Apple ID to login to her iPad, do I have to give her my Apple ID password to reset it?

Is it okay to majorly distort historical facts while writing a fiction story?

what's the use of '% to gdp' type of variables?

Is French Guiana a (hard) EU border?

Cannot shrink btrfs filesystem although there is still data and metadata space left : ERROR: unable to resize '/home': No space left on device

Is there a reasonable and studied concept of reduction between regular languages?

What difference does it make using sed with/without whitespaces?

IC has pull-down resistors on SMBus lines?

What was Carter Burke's job for "the company" in Aliens?

Physiological effects of huge anime eyes

Are the names of these months realistic?

What is the process for cleansing a very negative action

It is correct to match light sources with the same color temperature?

Calculate the Mean mean of two numbers

Airplane gently rocking its wings during whole flight

Small nick on power cord from an electric alarm clock, and copper wiring exposed but intact

Could a dragon use its wings to swim?

Expressing the idea of having a very busy time

What is the difference between "hamstring tendon" and "common hamstring tendon"?



Apache2 Permanent Redirect



The Next CEO of Stack Overflowapache2 restart?Default handling for unmatched domains/subdomains in ApacheWhat's the difference between /private/etc/apache2 and /etc/apache2?Apache2 redirect certain HTTP requestsMultiple websites on one server/IP; only one with SSLMultiple htpasswd user entriesPHP fast-cgi redirect loop apache2Disable SSL fallback in Apache2 or redirect without matching certificaterewrite URL with respect to request domain in apacheApache2 proxy Authorization bearer












1















Hi I'm trying to have multiple Redirect rules, that do not work together.



Redirect permanent /index.php/news/ http://newurl.io/blog/
Redirect permanent /index.php/1363-2/ http://newurl.io/bar/
Redirect permanent / http://newurl.io/foo/


But everytime I add the last rule, the result for index.php/news/ is a redirect to http://newurl.io/foo/.



I tried if the order of the entries effect the result, but they don't.



Is there some way to make Apache only redirect the specific URLs that are being specified by the command?










share|improve this question




















  • 1





    You specified that everything should be redirected so it's doing what you want? Where are you actually putting those rules? What does the other configuration look like?

    – Seth
    Jul 24 '17 at 9:25






  • 1





    The config is in hosts.conf, and basically it works, the only problem is, that I want specific addresses to go to another specific address, but currently the redirect is on a first catch basis (so if it sees / it will redirect to foo/ instead of reading ahead and seeing that the url matches another redirect.

    – Sebastian van Wickern
    Jul 24 '17 at 11:56
















1















Hi I'm trying to have multiple Redirect rules, that do not work together.



Redirect permanent /index.php/news/ http://newurl.io/blog/
Redirect permanent /index.php/1363-2/ http://newurl.io/bar/
Redirect permanent / http://newurl.io/foo/


But everytime I add the last rule, the result for index.php/news/ is a redirect to http://newurl.io/foo/.



I tried if the order of the entries effect the result, but they don't.



Is there some way to make Apache only redirect the specific URLs that are being specified by the command?










share|improve this question




















  • 1





    You specified that everything should be redirected so it's doing what you want? Where are you actually putting those rules? What does the other configuration look like?

    – Seth
    Jul 24 '17 at 9:25






  • 1





    The config is in hosts.conf, and basically it works, the only problem is, that I want specific addresses to go to another specific address, but currently the redirect is on a first catch basis (so if it sees / it will redirect to foo/ instead of reading ahead and seeing that the url matches another redirect.

    – Sebastian van Wickern
    Jul 24 '17 at 11:56














1












1








1


0






Hi I'm trying to have multiple Redirect rules, that do not work together.



Redirect permanent /index.php/news/ http://newurl.io/blog/
Redirect permanent /index.php/1363-2/ http://newurl.io/bar/
Redirect permanent / http://newurl.io/foo/


But everytime I add the last rule, the result for index.php/news/ is a redirect to http://newurl.io/foo/.



I tried if the order of the entries effect the result, but they don't.



Is there some way to make Apache only redirect the specific URLs that are being specified by the command?










share|improve this question
















Hi I'm trying to have multiple Redirect rules, that do not work together.



Redirect permanent /index.php/news/ http://newurl.io/blog/
Redirect permanent /index.php/1363-2/ http://newurl.io/bar/
Redirect permanent / http://newurl.io/foo/


But everytime I add the last rule, the result for index.php/news/ is a redirect to http://newurl.io/foo/.



I tried if the order of the entries effect the result, but they don't.



Is there some way to make Apache only redirect the specific URLs that are being specified by the command?







apache-http-server






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jul 24 '17 at 9:20









Seth

6,59411128




6,59411128










asked Jul 24 '17 at 9:09









Sebastian van WickernSebastian van Wickern

1062




1062








  • 1





    You specified that everything should be redirected so it's doing what you want? Where are you actually putting those rules? What does the other configuration look like?

    – Seth
    Jul 24 '17 at 9:25






  • 1





    The config is in hosts.conf, and basically it works, the only problem is, that I want specific addresses to go to another specific address, but currently the redirect is on a first catch basis (so if it sees / it will redirect to foo/ instead of reading ahead and seeing that the url matches another redirect.

    – Sebastian van Wickern
    Jul 24 '17 at 11:56














  • 1





    You specified that everything should be redirected so it's doing what you want? Where are you actually putting those rules? What does the other configuration look like?

    – Seth
    Jul 24 '17 at 9:25






  • 1





    The config is in hosts.conf, and basically it works, the only problem is, that I want specific addresses to go to another specific address, but currently the redirect is on a first catch basis (so if it sees / it will redirect to foo/ instead of reading ahead and seeing that the url matches another redirect.

    – Sebastian van Wickern
    Jul 24 '17 at 11:56








1




1





You specified that everything should be redirected so it's doing what you want? Where are you actually putting those rules? What does the other configuration look like?

– Seth
Jul 24 '17 at 9:25





You specified that everything should be redirected so it's doing what you want? Where are you actually putting those rules? What does the other configuration look like?

– Seth
Jul 24 '17 at 9:25




1




1





The config is in hosts.conf, and basically it works, the only problem is, that I want specific addresses to go to another specific address, but currently the redirect is on a first catch basis (so if it sees / it will redirect to foo/ instead of reading ahead and seeing that the url matches another redirect.

– Sebastian van Wickern
Jul 24 '17 at 11:56





The config is in hosts.conf, and basically it works, the only problem is, that I want specific addresses to go to another specific address, but currently the redirect is on a first catch basis (so if it sees / it will redirect to foo/ instead of reading ahead and seeing that the url matches another redirect.

– Sebastian van Wickern
Jul 24 '17 at 11:56










1 Answer
1






active

oldest

votes


















0














Are you entering your [c0de] into a .htaccess file? https://ezseonews.com/blog/using-htaccess-file-for-affiliate-link-redirects/?



A .htaccess file in the root directory is c00|






share|improve this answer
























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "3"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1233831%2fapache2-permanent-redirect%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    Are you entering your [c0de] into a .htaccess file? https://ezseonews.com/blog/using-htaccess-file-for-affiliate-link-redirects/?



    A .htaccess file in the root directory is c00|






    share|improve this answer




























      0














      Are you entering your [c0de] into a .htaccess file? https://ezseonews.com/blog/using-htaccess-file-for-affiliate-link-redirects/?



      A .htaccess file in the root directory is c00|






      share|improve this answer


























        0












        0








        0







        Are you entering your [c0de] into a .htaccess file? https://ezseonews.com/blog/using-htaccess-file-for-affiliate-link-redirects/?



        A .htaccess file in the root directory is c00|






        share|improve this answer













        Are you entering your [c0de] into a .htaccess file? https://ezseonews.com/blog/using-htaccess-file-for-affiliate-link-redirects/?



        A .htaccess file in the root directory is c00|







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 17 mins ago









        Jesse Mac DougallJesse Mac Dougall

        164




        164






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Super User!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1233831%2fapache2-permanent-redirect%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            VNC viewer RFB protocol error: bad desktop size 0x0I Cannot Type the Key 'd' (lowercase) in VNC Viewer...

            Tribunal Administrativo e Fiscal de Mirandela Referências Menu de...

            looking for continuous Screen Capture for retroactivly reproducing errors, timeback machineRolling desktop...