i have a problem with my URL that is i have some thing like this
http://somelink.com/mobile/somethinghere
i need it to change it to something like this:
http://somelink.com/mobile/index.html
the somethinghere in the url will change dynamically i dont need that.
So is there any way to avoid that and replace it with the other.
-
1what is the something in here?Ibu– Ibu2011年04月29日 04:40:23 +00:00Commented Apr 29, 2011 at 4:40
-
somethinghere in the url.that will always changeDevan– Devan2011年04月29日 04:47:12 +00:00Commented Apr 29, 2011 at 4:47
-
somethinghere is some pages in the URLDevan– Devan2011年04月29日 04:47:45 +00:00Commented Apr 29, 2011 at 4:47
-
1can you give a second example, it is kind of obscureIbu– Ibu2011年04月29日 04:51:39 +00:00Commented Apr 29, 2011 at 4:51
3 Answers 3
Use
location.href = 'http://somelink.com/mobile/index.html'
Comments
If you are loading content dynamically and don't want the url to change, use $.load('pageToLoad', function() { }), or modify the location of the window like this: window.location.href='blah'
Comments
If Somethingthere is some page on your site, you can write some script on that page which will redirect to Index.html. I think you can use window.onload() to do that.