Question on rewriting url

I have a site www.mydomain.org that also has the .com and .net registered and pointing to the same site. What we would like to do is when someone goes to www.mydomain.com, have the url in the browsers address bar change to www.mydomain.org. We don't want to use redirects, but just have the url change in the browser, because redirects will mess with our web stats. Any ideas?

Thank you very much. It's very helpful to know the
cache is based on the complete URL including
querystring. Is there any docs about it?
so if I add 3 meta tag to my jsp, proxy or browser
should not cache?Well, not really. I'm sorta making an assumption here, honestly. The reason is that any caching proxy server can do whatever it wants to associate a cached page with a URL. IF it wants to ignore the query string part of a URL, it could simply trim that. But from the ones I've seen, the full URL was used.
If you use those response headers, it shouldn't cache in the proxy or browser.
then the only thing I am worry now is that the
sessionID is in url, is it easy stolen by someone
else? I used session very heavy in my app. so if the
sessionID is not secure enough, it's very dangerous.It doesn't matter if the session ID is in the URL or a cookie. Someone could "steal" it from either place easily enough. It'd still be in the request from the browser, and it has to be because of how the HTTP protocol works. The only way to make it secure is to use SSL.
The session should always timeout anyway so that the session ID isn't good forever.

Similar Messages

  • Apache rewrite URL for integrated ITS

    Hello All,
    What is the Rewrite url for the integrated ITS and proxy pass for the ITS
    Below is the one I have and its not working
    RewriteRule ^/(sap\(.*) https://sapprd.domain.com:8080/sap$1 [P,L]
    ProxyPass /sap https://sapprd.domain.com:8080/sap
    Please let me know the correct Rewrite url for accessing integrated ITS using apache reverse proxy. Should I need say /sap/bc/sap/gui/its
    Thanks,
    Praveen

    Praveen,
    To reverse proxy to HTTPS you need to make sure that you have the mod_proxy_connect module loaded.  Check out http://httpd.apache.org/docs/2.0/mod/mod_proxy.html
    Maybe that will help.
    Regards,
    Keith

  • Rewriting URLs with .NRY

    Sorry I am not exactly sure what to choose with the options above.
    I was using ISAPI Rewrite but I think that is causing some issues.
    I was recommended URL Rewriter[ but I am not comfortable with web.config
    The rewrite is something like:
    RewriteRule /e-commerce /e-commerce.asp [I,U]
    So that when someone goes to
    www.example.com/e-commerce.asp - the URL is www.example.com/e-commerce
    I don't know if there is a good find and replace for this but I an VERY NEW to .NET
    So if someone can help me out, get me started, I would appreciate it
    Thank you!
    Corey

    This forum supports setup of the .NET Framework. As your question appears to be about web applications/ASP.NET, I suggest you ask in a topical forum at the Microsoft ASP.NET site, found here:
    http://forums.asp.net/

  • Question on Passing URL Parameters

    Thanks in advance for any responses to this question!
    I have a dynamic table (in a master page using javascript and
    asp) that links to a detail page, passing a parameter (the ID of a
    product) to identify the correct row to display in the detail
    page's recordset. Everything works great.
    I decided I wanted to have this detail page be a "popup" in
    which I control the window properties with javascript.
    The problem I'm having is this: when I put the javascript
    code (for the popup window's properties) in the href of the dynamic
    table cell that links to the detail page, it's no longer passing
    the parameter properly.
    Here's the code BEFORE the javascript was entered:
    <td width="95" class="product_cell"><div
    align="center"><a href="detail_container.asp?<%=
    Server.HTMLEncode(MM_keepNone) + ((MM_keepNone!="")?"&":"") +
    "ID=" + rsHDPE.Fields.Item("ID").Value
    %>"><%=(rsHDPE.Fields.Item("image").Value)%></a></div></td>
    As you can see, detail_container.asp is the detail page, and
    ?<%= Server.HTMLEncode(MM_keepNone) +
    ((MM_keepNone!="")?"&":"") + "ID=" +
    rsHDPE.Fields.Item("ID").Value %> is the asp code that
    dreamweaver included to pass the parameter.
    Now, if I WAS NOT passing a parameter, here's the line
    including javascript code - which I have tested with success - to
    open the popup window to my specifications:
    <td width="95" class="product_cell"><div
    align="center"><a
    href="javascript:poptastic('detail_container.asp');"><%=(rsHDPE.Fields.Item("image").Valu e)%></a></div></td>
    (yeah, poptastic is a silly name for a function, isn't it?)
    But how do I combine these to get the parameter to pass AND
    control the window properties?
    Because this doesn't work:
    <td width="95" class="product_cell"><div
    align="center"><a
    href="javascript:poptastic('detail_container.asp');?<%=
    Server.HTMLEncode(MM_keepNone) + ((MM_keepNone!="")?"&":"") +
    "ID=" + rsHDPE.Fields.Item("ID").Value
    %>"><%=(rsHDPE.Fields.Item("image").Value)%></a></div></td>
    How can I pull this off? Is my syntax wrong?

    Of course, if you look at the linked URL, you won't see any
    of this code,
    right?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Deaf Web Designer" <[email protected]>
    wrote in message
    news:eh9hi9$sv8$[email protected]..
    > It is very confusing to see different partial HTML/js
    code. If you please
    > post
    > a URL link to your example page you are working on. It
    is easier that way,
    > where you will get some help more effective and
    productive way.
    >
    > Cheers, DWD
    >

  • Newbie question about deployment URL

    I created a web service using Web Logic 9's service gen. I then successfully deployed it. When I tried calling it, I get a 404. I'm not sure I'm calling the correct URL and failing, or if I'm not even calling the correct URL.
    My URL is
    localhost:7001/<contextURI>/<serviceURI>?WSDL (values in angle brackets taken from the service gen).
    I always seem to have this trouble when deploying... knowing what the URL should be.
    Any suggestions?

    Answering my own question... whilst I deployed the web service, I had not deployed the context. Doing so sorted out my problem.

  • Question about (HttpURLConnection)url.openConnection();

    Greetings Java Experts.
    I have a question about the following code snippet.
    As you can see below this snippet will establish a connection.
    Question how long will it allow for the connection to be established - for example if the web traffic is taking an unusually long period of time can I set it to a higher value ?
    connection = (HttpURLConnection)url.openConnection();
         HttpURLConnection.setFollowRedirects(true);
         connection.setInstanceFollowRedirects(true);
         connection.setUseCaches(false);
    stev

    forever, unless you set SO_TIMEOUT

  • Question About Homepage URL

    Hi,
    I have 2 questions
    1.I wanted to know if it was possible to do this. So this is my first pages
    http://www.clementhernandez.com/Clement_Hernandez.html
    Would it be possible for my first page to be under this URL
    http://www.clementhernandez.com/
    2. Why do all the URL pages have to end .HTML
    Example: http://www.clementhernandez.com/News.html
    why cant it be like
    http://www.clementhernandez.com/News
    I have seen all these 2 things in other websites.
    THANK YOU!
    Clement

    ok, first see if name you file index in iWeb then uploading it will allow you to go straight to yoursite.com instead of yoursite.com/yourfirstpage.html if it
    If that works find your HTML file, it will be located both here and here. Depending on where you choose to get the file from you may need to download it. After downloading it right-click the file and open it in your HTML file editor (like Coda or Espresso), if you don't have an HTML file editor Dashcode will work just fine. change the text between <title>index</title> to whatever you like and your good to go!
    Let me know if you have any questions or if that doesn't work
    - Zyber

  • Question about Facebook URL

    Hey everyone, new here so Im probably doing this completely wrong but please bare with me! I was randomly directed here whilst trying to find out if theres a way of changing my Facebook URL (its already been changed once - not by me)
    I have no idea why the adobe forum section would be interested in that, but the link provided sent me here. I also had no idea what thread to post this in either, so I apologise in advance for probably making a mistake.
    Any help would be greatly appreciated. Thanks guys

    As has been mentioned, this forum is for discussion of the Adobe fora.
    However, very near-by, the Lounge might get some comments on your question. It's for broad-source discussions, not about things Adobe-specific. Lot of people there know FB, so might have some useful thoughts for you.
    Good luck,
    Hunt

  • [SOLVED] nginx, php-cgi, rewrite url, 502 bad gateway.

    Hello everyone.
    I just set my nginx server, with php-cgi, as it is in the wiki site and it is working perfectly. I have just one problem. I am trying to rewrite my url, and I got an error after several refreshes.
    This is my site configuration.
    server {
    listen 80;
    server_name localhost testwebsite testwebsite.homelinux.org;
    access_log logs/testwebsite.access.log main;
    location / {
    root /home/www/testwebsite;
    index index.php;
    if (!-e $request_filename) {
    rewrite ^/(.*)$ /index.php?path=$1 last;
    #rewrite ^/((.*)[^/])$ /index.php?path=$1 last;
    location ~ \.php$ {
    #root www;
    fastcgi_pass 127.0.0.1:9000;
    fastcgi_index index.php;
    fastcgi_param SCRIPT_FILENAME /home/www/testwebsite/$fastcgi_script_name;
    include fastcgi_params;
    When I am not trying to rewrite the url, everything is ok, but when I try to rewrite it, after several refreshes on the page, I got nginx error: 502 bad gateway, and the cgi deamon stops to work.
    When I restart the fastcgi (I am using the example /etc/rc.d/fastcgi file as it is in the wiki) the web site is working again for several refreshes, and then the fastcgi stops again and I got the bad gateway again.
    Can someone tell me what is wrong with my rewrite rule, please.
    Regards.
    Last edited by Gruntz (2010-04-08 15:58:50)

    I fixed it with that rewrite:
    rewrite  ^([^.]*)$  /index.php?path=$1;

  • SendRedirect doesn't rewrite URL?

    Our application is similar to a web-based email application. Basically the
              situation is this: We have a servlet that is responsible for composing a
              new message. It handles the HTTP post and submits some information to a
              back-end database, then calls HttpResponse.sendRedirect() to redirect the
              browser to, say, the user's inbox to so they can see the results of the
              post.
              The problem we are having, is that sendRedirect() is not rewriting the URL.
              So they are looking at the inbox, but the URL is still the old URL for
              posting a new message. It's as if the redirect is happening on the server
              side and as far as the browser is concerned it is still looking at the old
              URL.
              What we really want is to force the browser to request the new URL. The
              problem with the current situation is that the browser is still pointing to
              the URL for posting a new message, so if they hit refresh in their browser,
              it posts to our submit servlet again and they get a duplicate message in
              their inbox.
              Any help would be appreciated. Thanks.
              -- Erik Ebert
              [email protected]
              

              Jeff Martin <[email protected]> wrote in message
              news:[email protected]...
              > Erik Ebert wrote:
              > >
              > > Our application is similar to a web-based email application. Basically
              the
              > > situation is this: We have a servlet that is responsible for composing
              a
              > > new message. It handles the HTTP post and submits some information to a
              > > back-end database, then calls HttpResponse.sendRedirect() to redirect
              the
              > > browser to, say, the user's inbox to so they can see the results of the
              > > post.
              > >
              > > The problem we are having, is that sendRedirect() is not rewriting the
              URL.
              > > So they are looking at the inbox, but the URL is still the old URL for
              > > posting a new message. It's as if the redirect is happening on the
              server
              > > side and as far as the browser is concerned it is still looking at the
              old
              > > URL.
              > >
              > > What we really want is to force the browser to request the new URL. The
              > > problem with the current situation is that the browser is still pointing
              to
              > > the URL for posting a new message, so if they hit refresh in their
              browser,
              > > it posts to our submit servlet again and they get a duplicate message in
              > > their inbox.
              >
              > You sound correct, so could you post a little code that doesn't work for
              > you?
              >
              > Jeff
              My bad. The error was elsewhere in our code. Sorry to bother the group.
              -- Erik
              

  • Simple question on @import url

    If I want to change from importing a style sheet from my server to included in the site direcory what changes do I need to make to:
    <!--
    @import url("mystylesheet.css");
    -->
    </style>
    Thanks, Tim

    I don't use @import.  Let's say you want to keep all your stylesheets ordered inside a sitefolder like so:
    Site - yoursite.com (C:\yoursite)
       +Styles
              mystyle.css
              print.css
              mobile.css
         index.html
         about.html
    Place this between the <head> and </head> tags
    <link href="Styles/mystyle.css" rel="stylesheet" type="text/css" media="screen"/>
    <link href="Styles/print.css" rel="stylesheet" type="text/css" media="print"/>
    <link href="Styles/mobile.css" rel="stylesheet" type="text/css" media="handheld"/>
    Does this answer your question?
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb

  • [SOLVED] cgit, apache, how to rewrite urls?

    Hello
    I'd like to use cgit like in projects.archlinux.org
    all i want is urls like
    http://domain/repo.git
    however i can only get
    http://domain/cgit.cgi/repo.git
    i tried virtual-root=/ it seems to work (links are shown as http://domain/repo.git) but i get 404s when i click on them
    how can i do that using virtualhost?
    Last edited by poorguy (2010-02-19 21:40:52)

    I've did it. Here's how:
    Note: you have to put "virtual-root=/" line to /etc/cgitrc
    <VirtualHost *:80>
    ServerName git.mydomain.com
    DocumentRoot "/srv/http/cgit"
    DirectoryIndex cgit.cgi
    SetEnv CGIT_CONFIG /etc/cgitrc
    <Directory "/srv/http/cgit">
    Options FollowSymlinks ExecCGI
    Allow from all
    AllowOverride all
    Order allow,deny
    <Files cgit.cgi>
    SetHandler cgi-script
    </Files>
    RewriteEngine on
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^.* /cgit.cgi/$0 [L,PT]
    </Directory>
    <Directory "/srv/gitosis/repositories">
    Allow from all
    </Directory>
    # To debug rewrite just enable them.
    # RewriteLog /var/log/httpd/rewrite_log
    # RewriteLogLevel 9
    ErrorLog /var/log/httpd/gitweb
    </VirtualHost>

  • Question about friendly urls?

    greetings all
    i want to ask about if the following is possible:
    i have a link that look like this:
    http://somewebsite.com/page?param1=value1&param2=value2&param3=value3
    is it possible to make the link that appears in the browser like
    http://something.com/page ,and the parameter values is still there in the browser
    something like the urlrewrite or a filter or somehow i don't know?
    any ideas if it's possible?

    Those parameters are there for a reason; to pass along information to the page so that the dynamic content can be manipulated based on them. So your question really is: "Can I pass along this information to the page in another way than URL parameters?"
    There are always options, but most of them require work. For example:
    1) use a POST to generate the page
    In a POST request the parameters are part of the request body, so you don't see them. The trouble is that a POST request cannot be created just like that; it requires some sort of form submission behind it. This can be facilitated with javascript (output a form and let the link submit it through an onclick handler), but it is far from a clean solution.
    Added pain: form submits behave badly in combination with the browser back/forward buttons. Also, bookmarking cannot work like this.
    2) "web 2.0". Using Ajax it is possible to do page updates in the background, so you could do the request (with parameters) asynchronously and update the page accordingly.
    Added pain: again back/forward buttons and bookmarking will be broken unless you take very specific steps (that I don't know of myself).
    3) conversation scope technology. Some APIs provide a so called "conversation" scope, which allows you to hold on to certain values across requests until you end the conversation. You could use this to push certain values into the conversation and reuse them in different pages without having to pass along the values as request parameters or in a form. Even without a conversation scope, you could simply abuse the session for this purpose.
    I hope this has given you some idea how to go about implementing your requirement.

  • Question about mangled URLs

    Hello,
    I have a load testing app that I'm adapting to work with BSPs and I have a question about the mangled URLs that are used.
    If I record a URL that is mangled, can I save that URL and reuse it during the playback of a session?  From what I understand it includes things like theme, language and such.  But obviously if it includes a session  ID, it won't work.
    Session ID seems to be stored in a cookie.  Can it also be stored in a mangled URL and if so, why the duplication?
    Any help greatly appreciated!
    Thanks!!!

    Those parameters are there for a reason; to pass along information to the page so that the dynamic content can be manipulated based on them. So your question really is: "Can I pass along this information to the page in another way than URL parameters?"
    There are always options, but most of them require work. For example:
    1) use a POST to generate the page
    In a POST request the parameters are part of the request body, so you don't see them. The trouble is that a POST request cannot be created just like that; it requires some sort of form submission behind it. This can be facilitated with javascript (output a form and let the link submit it through an onclick handler), but it is far from a clean solution.
    Added pain: form submits behave badly in combination with the browser back/forward buttons. Also, bookmarking cannot work like this.
    2) "web 2.0". Using Ajax it is possible to do page updates in the background, so you could do the request (with parameters) asynchronously and update the page accordingly.
    Added pain: again back/forward buttons and bookmarking will be broken unless you take very specific steps (that I don't know of myself).
    3) conversation scope technology. Some APIs provide a so called "conversation" scope, which allows you to hold on to certain values across requests until you end the conversation. You could use this to push certain values into the conversation and reuse them in different pages without having to pass along the values as request parameters or in a form. Even without a conversation scope, you could simply abuse the session for this purpose.
    I hope this has given you some idea how to go about implementing your requirement.

  • CSS11500 SSL handling question for multiple url/FQDNs with the same ip address

    I know that it's possible on the CSS to handle multiple incoming HTTP requests that terminate on the same IP address and port and balance them to various servers based on the url.   For instance, I can set up www.cats.com and www.dogs.com at the same 192.168.35.12 address in DNS, and set up two different content rules:
    content cats
    vip address 192.168.35.12
    port 80
    url "//www.cats.com/*"
    add server cats1
    add server cats2
    active
    content dogs
    vip 192.168.35.12
    port 80
    url "//www.dogs.com/*"
    add server dogs1
    add server dogs2
    active.
    Easy and straightforward.
    But what if I want to add SSL handling for https://www.cats.com and https://www.dogs.com?
    I'm not sure how to create the ssl-proxy-list where one content rule (ip address/port) combination needs to pass through the ssl module and get matched with the proper ssl certificate.
    Can this be done?  Can one associate multiple certs and keys with a single ssl-server entry and a single ssl accelerator service?  Or do I have to create multiple ssl-proxy-lists for cats and dogs and build multiple ssl services each referring to a unique ssl-proxy-list, and then use the url parameter in the https content rule to determine which ssl service (and therefore which key/cert pair) gets the traffic?
    Thanks in advance for any insights.

    Hi Tim,
    Unfortunately this is not possible; you can't associate multiple certificates to a single proxy list due to the fact that SSL handshake is done first with no visibility of the URL being requested, so the CSS won't know which public server to use in order to perform the traffic decryption.
    But there are a couple of options that you may want to look at (depending on the URL string)
    If your URLs are subdomains and you hold a wildcard SSL certficate to match multiple requests, i.e your domain being "pets.com" you can have a certficate that will match request for dogs.pets.com or cats.pets.com because the cert will be in the form *.pets.com
    The second option is SAN (Subject alternative names) certificates; which give you the option to include up to 4 flavors of the domain within the same file, such as pets.com, pets.net, www.1pets.com.
    I hope this helps.
    Pablo

Maybe you are looking for