redirect on the index page

Hello

I have an index page on my site with the access of the user to the main section of my site (www.sugarrays.co.uk), currently, we put a redirect on the page indext, but it is very slow. Currently, we use a (body onLoad) javascript for redirection, see below:
< onLoad body = "MM_goToURL ('parent ',' http://www.sugarrays.co.uk/shop/home.php');" return document. MM_returnValue">

does anyone know a better way to do this?

Thank you

Wednesday, April 11, 2007 10:17:35 + 0000 (UTC), "Kamesh192".
wrote:

> im not too similar with the process that you have said, should I put the code:<>
> header ("Location: shop/home.php '");? > in a white folder and name it
> redirect.htaccess and then upload this file to the root folder? is that correct?

Lol by using a .htaccess file does not involve PHP at all. What follows
assume that the server had .htaccess enabled for your site and that
mod_rewrite is available.

First of all, check your preferences to ensure that your line breaks are
set correctly under UNIX (Edit-> preferences-> Format of Code-> line break Type).
Then check the remote files to see if there is an existing file named
.htaccess. If there is, download it and add the two following lines to
the lower part. Otherwise, create a new file that includes * only * the
following two lines:

RewriteEngine on
RewriteRule ^ $| ^ index.html$ /shop/home.php [R = 301, L]

Save the file as .htaccess in the root directory of the site. It's the
full name. The point is the first character of it.

Download the file on your site, then test immediately by accessing
http://www.sugarrays.co.uk to ensure that it works. If you get an error,
Delete the file from the remote control. If it works correctly, you will be
re-directed before any page is downloaded.

> Thanks for your help

You are welcome.

Gary

Tags: Dreamweaver

Similar Questions

  • Its results are not redirect to the respective pages


    Hi all

    I configured ITS Peoplesoft peopletools 8.53 and ELM 9.2 instance.

    After you have everything configured, ITS search results arrive correctly but is you click on it, it is not redirecting to the respective pages.

    This is to show the error on the page in the status bar of Internet Explore.

    Could you please help me to solve the problem.

    Thanks in advance.

    AJMAL

    Hello

    Probably you are encountering the problem that is described in this document of knowledge "My Oracle Support":

    Doc # 1551951.1: Search 'Results list' contains links that do not work because they are built with the incorrect URL

    Here is the solution:

    ------------------------

    Make sure that the content/portal URI are set correctly on all nodes the.  This can be done as follows:

    1. connect to the PeopleSoft application

    2. go to PeopleTools Integration Broker, integration configuration, nodes

    3. sort by "Local node".

    4. for any node where "node Local = 1' do the following:

    a. set up the node

    b. go to the tab "portal."

    c. ensure that the text "URI Content" and "Portal URI text" are properly defined.

    For example, if your Integration Broker is on myserver.mycompany.com:8000 and your site is called hcm, you would use these values:

    Text of the URI of the content = "http://myserver.mycompany.com:8000/PSC/hcm /"

    Portal of text URI = "http://myserver.mycompany.com:8000/psp/hcm /"

    (Write it down "/" at the end of the values.) Make sure you remember that)

    d. make sure this change is made to all nodes. For example, for HCM, this aspect should be defined for nodes PSFT_HR and HRMS.

    5. after making the above changes, you need to rebuild the search index. Do this as follows:

    a. redeploy all the definitions of research that were built with the incorrect URL as follows:

    -Go to PeopleTools, research framework, Administration, deployment/delete the object

    -Box next to the definition of inactive research

    -Click "undeploy".

    -Once finished, check the box next to the definition of research and this time click "deploy".

    b. rebuild search indexes

    -Go to PeopleTools, research, Administration, research agenda Index

    -Bring the command run to perform a build of the full Index and launch it.

    c. Once finished the process ' Building for Search Index ', re - test and verify that the problem is solved.

  • BB10 Webworks app cannot call the index page

    Hi all

    I work on the BB 10 Webworks and test on the ripple is fine, but if it was launched the bb10 Simulator on VM Fusion, the application cannot display the index page.

    SDK: BlackBerry 10 WebWorks SDK 1.0.4.11

    Ripple: 0.9.14

    VM Fusion: 5.02

    Simulator: BB10_1_X-807

    can someone help me, thank you very.

    I think I have this problem.

    I try to remove the old sdk bb10 of macos and then reinstall the latest JDK and JRE & bb10 sdk once again, problem solved.

  • do not loading the index page

    Hello

    I recently made changes to a site in the latest version (site was the previous version) upgrade of site and went on to publish via FTP not loading the index page. All other pages did. Since then I have used time machine and reloaded the previous site. Any help? is this a bug?

    the Web site is cjduncan.com/spacedays

    Hello, have you managed to solve the problem

    Have you managed to solve the problem?

    Your site to load very well to my dissertation

    I checked in several browsers as well.

    -Catherine

  • Helping the Index page

    Hello

    I'm working on my first real site and I'm having a problem, I can not understand.

    with respect to the index page.  I have my page set up how I want, but I can't seem to load as I want it.

    This is the site

    www.pineywoodsfarming.com

    and if you notice, it's not about us section.  But if you go to

    www.pineywoodsfarming.com/index.html

    then it works as I want.  I think that it is a general question, I need to learn more about because I am not satisfied by the paths I have.  for example, farm manager wanted section.  I would like to take off the /pages/manager/html (those in bold I would take off)

    can someone direct me to a topic that I need to learn more about.  Thank you

    If you have the time some creative comments would also appreciated but not necessary. (my main concern is that I did the home page is not user friendly)

    Thanks for watching and helping out a new guy.




    Edit:


    He began to appear on his own without doing me anything, so I think that fixed the problem.  Perhaps no clear historical as well as I thought I did.  but can someone direct me to a topic to help me with my problem of address (or what I just my layout with this in mind the structure)


    Thank you


    You can easily get rid of the pages folder in the structure of your site by changing all of your index.html pages and placing them into folders for each section in the root of the site, like this...

    index.html
    on<-->

    index.html<-- would="" be="" the="" old="" about="" us="">

    job<>
    index.html<-- would="" be="" the="" old="" manager.html="">

    In this way, your pages would be www.pineywoodsfarming.com/about or www.pineywoodsfarming.com/employment

  • I have been designing a new Web site and when I publish on BusinessCatalyst the index page shows a sign 'coming soon '? This has never happened before and I don't know how to solve this problem?

    I have been designing a new Web site and when I publish on BusinessCatalyst the index page shows a sign 'coming soon '? This has never happened before and I don't know how to solve this problem?

    I have published on an existing site, but also a new site, but I get the same message?

    Hello

    Open the page that wants to set as your home page,

    Click on more action-> set as start page

    Now visit the site again, it should be good.

    Let me know if you have any question.

  • Journal of R12 SSO on redirecting to the home page of R12

    Hi all

    I joined R12 with SSO. After clicking on connect, it redirects to the home page again after trying for a while to close your session in the sso page. Help, please.

    Environment, R12.1.3, Aix 6.1

    Kind regards

    Cherkaoui

    Hi Haran,

    Please confirm if the recent changes have been made, and this feature was working fine before.

    Please see if you can find more details in the log of Apache and Application files.

    Please also have a look at the notes:

    Logout link in E-business Suite does not return to the SSO login Page when using Ondaaah (Doc ID 735308.1)

    Thank you &

    Best regards

  • How can I redirect to the login page when the client disconnects?

    I use {module_logout}, how do I redirect to the login page when a client disconnects?

    Thank you for posting.

    You can redirect the user to the login page using a small java script code. Please visit the following link http://kb.worldsecuresystems.com/598/bc_598.html#main_Redirecting_to_another_page

    See you soon,.

    Scott Raj Rouanet

  • Redirect to the same page with the values of the variables

    Hello

    I develop a form to report data of the certain date range provided by the user.

    The problem is that I have to redirect the page back to the original page with the error message "not found in the date range" If the provided date range contains all the data in the database. I am able to redirect the page to the original page for help:

    < cfif queryname. RecordCount EQ 0 >

    < cfset action 'error' = >

    < Cflocation >

    < / cfif >

    And I use the < cfparam > for the creation of an action to navigate in the code, variable

    < name cfparam = "action" default = "" >

    [Use the < cfparam > above, tag at the top of the code and using action EQ 'report' and ' ' for navigation in the code]

    But, when I redirect to the same page, with the variable value measures of error and using cflocation he forget all varable values in the new page [way], then how can I pass a variable value measures on the same page and redirect it to the same page on meeting certain criteria.

    If this isn't clear, let me know.

    Help, please

    Vijayvijay77.

    vijayvijay77 wrote:


    ...


    And I use

    a kind of cfif to navigate inside the code. I'm doing something wrong here.

    You say that you guessed it at work.  But you have a dangerous code here (if you have not changed).

    The line will generate variables URLS when ColdFusion processes the page.cfm file once requested by the browser.  For example url.set and url.flag.

    Tags are NOT specifying the scope of variables, so they will default to the scope of "variables".  Who are the local variables of the demand for treatment.  For example variables.set and variables.flag.

    URL.set and VARIABLES.set ARE NOT the same variables.  And this confusion can cause some VERY difficult to diagnose the problems of code.

  • How to set point values when redirecting to the same page.

    I just create a button to redirect I want to redirect to the same page and place 2 elements on the page to the same value they had before the redirection.
    But I can not write:
    Place these items: P1_Permit_Number, P1_Fishing_Year
    With these values: & P1_Permit_Number, & P1_Fishing_Year.

    Because there are no values in session state, because a shipment has not been done.

    So, how can I do this?
    I know how to get the values stored in the elements, for example, $v ('P1_PERMIT_NUMBER')
    but where should I put this command? It is not allowed under the "with these values.
    And I don't really want to make a button "submit" and create a process that says:
    P1_PERMIT_NUMBER: = $v ('P1_PERMIT_NUMBER'), because that would complicate the page too - I already have other branches and the process on the pages which conditions have to be modified so that they do not work in this scenario.

    Thank you.

    Hello

    The syntax seems correct to me. Your summers of uppercase element names?

    Try:

    alert("Here");
    var permitNumber = document.getElementById('P1_Permit_Number').value;
    alert(permitNumber);
    var fishingYear = document.getElementById('P1_Fishing_Year').value;
    alert(fishingYear);
    var url = 'f?p=&APP_ID.:1:&APP_SESSION.:Vessel_Display:::P1_Permit_Number,P1_Fishing_Year:' + permitNumber + ',' + fishingYear;
    alert(url):
    window.location.href = url;
    

    All alerts MUST display expected values. Doesn't it?

    Andy

  • Bypass the index page.html in PIA

    HI Experts,

    I have configured the load balancer for my web server (server of Web 2) .so that my url looks like http://qaps.lnt.com when I go to the url it redirects me to the peoplesoft index.html page. When I click on "Please click here to log on to the page of peoplesoft", it takes me to the login page. But my requirement is to circumvent the index.html page. When I type http://qaps.lnt.com it brings me to our login page. The reason behind this is the user final can recall only the abbreviated of qaps.lnt.com and not form the url complete and also, they do not want to see the homepage of weblogic server (index.html) page.

    Any ideas or suggestions.

    Thank you

    A vinatier

    Hello

    2 simple options.

    1: change the index.html file in each web server and add a refresh of html to automatically to the login page:

    http://qaps.LNT.com/PS/signon.html">

    Loading...<p class="reply"> <p class="reply">

    2. most of the load balancers allow actions in base/context based application.  Use your load balancer to intercept the query "/" and rewritten for the customer.  (This method may vary depending on your program of load balancing).

    I hope this helps.

    Bruce

  • Why I always automatically redirected to the French pages?

    When I type an address .com (or any other extensions not French) I get automatically redirected to an address .fr and I really hate this. If I want a French site, I'll ask for it, I don't have others to decide what I want. Sorry, nothing personal, it's just my frustration talking. I put Google.com on the opening page, and it has worked well so far. When I open an additional tab that I not redirected to .fr is probably not you, I just hope you have a solution to this very annoying feature.

    How can sites I report your location?

    See also:

  • Redirect to the new page of pl sql / process page?

    Hello

    I'm working on a page with a form for users to download the data.  When you press the "submit" button, it runs a process Page.  After the process is complete (i.e., to insert a new record of DB) we need to create a branch to a new page with treatment notes (defined in the process).  I tried to save the notes to an item on the first page and then configure a branch that fires "to submit, after treatment...". ' and includes notes in the industry, setting the value of an item on the new page.  It works in part but seems to truncate the value of the notes.  Is there a limit to the length of the string that can be passed via a branch page?

    Or is there a better way to do it?  Maybe there is a way to branch directly in the process?  If so, it would be easier because I wouldn't have if all goes well define a page element, just to pass this value along to the new page.

    Thank you

    Steve

    Hi Steve. 1234555 - Oracle,

    Agree with the suggestion of fac586:

    The value of the item on the new page can be defined directly in the process, or later without including the value in the branch (make sure that the direction is not clear the session state in the target page). Even better would be to give notes a structure to put them in a collection and displays them using a report.

    Here's how you can do if your process is PL/SQL:

    DECLARE
    
      L_NOTES VARCHAR2(512);
    
    BEGIN
    
      -- process for insertion and setting notes
    
      -- setting notes item on page to be branched
      APEX_UTIL.SET_SESSION_STATE('P2_NOTES', L_NOTES);
    
      -- redirecting/branching to the page
      APEX_UTIL.REDIRECT_URL (
          P_URL => 'f?p=' || :APP_ID || ':2:'|| :APP_SESSION ||'::NO:::' );
    
    END;
    

    Reference:

    I hope this helps!

    Kind regards

    Kiran

  • Redirect to the original page after login

    Hello, I'm new in the Fusion of the ADF, I'm trying to get my program to do the redirection, submitted by the user, after logging, page example: otherwise

    the user is connected to the session, and someone is trying to access a path in the browser (... faces/protected/admin/page.js) JAAS (Yes, I use JAAS, JAAS not ADF security, so I tried that before JAA redirect to the login screen, he kept the URL TO which the user has tried to do that when connecting the user to the system, it redirected to this page) not a standard page...

    I tried to recover using this url PhaseListener, filter using the filter applications (/ *) and using the < f: event > someone at - it suggestions?

    OBS: authorization and authentication with JAAS is ok, I wanted to just implement this dynamic redirect

    I create the hidden entrance and a button to test the parameter:

    public class test {}

    @ManagedProperty(value="#{param.from")

    private String

    I don't know if the injection with @ManagedProperty will work.

    So, first make sure that hidden field a correct value (you can check this in the source of the page, or you can add a component any visible...)

    If this value is correct, you can try to evaluate EL inside your connection method with:

    public static String evalAsString(String p_expression){
        FacesContext context = FacesContext.getCurrentInstance();
        ExpressionFactory expressionFactory = context.getApplication().getExpressionFactory();
        ELContext elContext = context.getELContext();
        ValueExpression vex = expressionFactory.createValueExpression(elContext, p_expression, String.class);
        String result = (String) vex.getValue(elContext);
        return result;
    }
    
    and then:
    String from = evalAsString("#{param.from}");
    

    Dario

  • Why is my footer in the middle of my page? It works fine on the index page.

    Footer appears on the middle of the page on other pages, but works completely fine on the index. No matter the amount of content I have, it remains down, but not on other pages. Why?

    And I'm not using a container or wrapper or whatever it is.Screen Shot 2015-04-08 at 5.49.11 PM.pngScreen Shot 2015-04-08 at 5.49.25 PM.pngScreen Shot 2015-04-08 at 5.53.28 PM.png

    It worked after I defined the height of my content div.

Maybe you are looking for

  • Drivers of monitor/TV big screen Toshiba

    Hi, not really sure where to go to solve this problem as well thought that I try everything here first I just got a toshiba tv (17WL46) and has an entry for PC. I have connected to the computer (analog) and I can't seem to change the resolution on th

  • My laptop installs four updates every time I stop. Is this normal?

    For these last days, my laptop has been installing updates EVERY TIME I stop. And it always installs four. Is this normal, or is there a problem? I also recently discovered that my laptop battery "reached the end of its useful life. What is this help

  • Fault scanner MG7520 Windows 10

    Hello Recently bought a Canon MG7520 printer and I have a problem with the scanner.  When trying to scan from my Windows 10 pc, a window pops up on my screen with an error code 2 250 200 ScanGear.  The error code also appears when I press scan on the

  • Failed to get automatically updates to Vista, error code 0 x 80070005

    I get error code 0 x 80070005, research it seems this code corresponds to the access denied. I don't get all the access denied messages. I am connected as a user with administrator privileges.

  • Cannot change some Bios settings

    Hi all: I use X 220 with Archlinux. I want to enable VT - X in Bios. I found the settings It is disabled. But the values are gray and cannot be set. What can I do? Thank you