1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

?? Creating Multiple URL's using same name??

Discussion in 'HTML & Website Design' started by MrAfrica, Jan 28, 2006.

  1. #1
    good-morning everyone,

    ok i'm working on a new site and i see that it's taking me FOREVER to create 500-plus URL's via cpanel...

    my site file names are going to be male-african-names1.html, male-african-names2.html, male-african-names3.html, and so on...

    is there anyway, i can create 500-plus files that has the same URL? each showing a different number? ( aka... some sofware or website editor that will make my job much easier? )


    losing u?


    sincerely,
    c.t.adams-///
     
    MrAfrica, Jan 28, 2006 IP
  2. Joobz

    Joobz Peon

    Messages:
    598
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Joobz, Jan 28, 2006 IP
  3. jaymcc

    jaymcc Peon

    Messages:
    139
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Not sure I understand... do you want to create 500 pages each with their own name? And what in cpanel are you using to do this? If i was to give you something to create the files would you be able to upload them through ftp?

    Jay
     
    jaymcc, Jan 29, 2006 IP
  4. MrAfrica

    MrAfrica Active Member

    Messages:
    44
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    93
    #4
    good-afternoon everyone,


    Joobz ~ that's what i believe i need as i'm still only at 130 name files, as it's taking so long... :)

    jaymcc ~ i know how to do that, but i'm looking to name over 500 files the same names, with the difference being a number... still thanks for helping me... :D

    example again:

    male-african-names1.html, male-african-names2.html, male-african-names3.html, male-african-names4.html, male-african-names5.html, etc...

    was looking for a shortcut...

    Note: i have html-kit and dreamweaver 8...


    anyone else can help out?

    sincerely,
    c.t.adams |||
     
    MrAfrica, Jan 29, 2006 IP
  5. mad4

    mad4 Peon

    Messages:
    6,986
    Likes Received:
    493
    Best Answers:
    0
    Trophy Points:
    0
    #5
    You could use mod rewrite to rename the files from male-african-names.php3?i=1 and i=2 etc to male-african-names1.html male-african-names2.html

    Then you create male-african-names.php3 and pull the content of the page from a database.
     
    mad4, Jan 29, 2006 IP
  6. MrAfrica

    MrAfrica Active Member

    Messages:
    44
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    93
    #6
    good-afternoon mad4,


    well i'm not looking to rename any files... i'm actually creating NEW files and want to use the same name with a number being the difference...

    got it now? :D


    sinerely,
    c.t.adams |||
     
    MrAfrica, Jan 29, 2006 IP
  7. jaymcc

    jaymcc Peon

    Messages:
    139
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #7
    I understand what you want, what is the content of the file(s)?
     
    jaymcc, Jan 29, 2006 IP
  8. mad4

    mad4 Peon

    Messages:
    6,986
    Likes Received:
    493
    Best Answers:
    0
    Trophy Points:
    0
    #8
    I understand - mod rewrite invisibly renames the files so your address bar sees page-1.html when the actual page is page.php3?i=1

    Trust me this method can do what you need and will allow you to create hundreds of pages from only 1 page.
     
    mad4, Jan 29, 2006 IP
  9. MrAfrica

    MrAfrica Active Member

    Messages:
    44
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    93
    #9
    good-afternoon jaymcc,


    well at this time many african-americans are now choosing AFRICAN first names when it comes to their newborns... ( aka... children )

    you will be able to visit the site and pick a given name... ( aka... thy meaning of each name shall be listed )

    Example:

    AKELLO: Alur of Uganda name meaning "I have brought" or "bring forth."

    AKIA: African name meaning "first born."


    have a nice day...


    sincerely,
    c.t.adams |||
     
    MrAfrica, Jan 29, 2006 IP
  10. jaymcc

    jaymcc Peon

    Messages:
    139
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #10
    You really are doing this the hard way. You would be better off with a simple database and one page using PHP or ASP or anything for that matter.

    I'm sure you have a good reason for not doing so though.

    First, make the following template file. This is just plain HTML that you can create in notepad.

    <html>
    <head>
    <title>Yada</title>
    </head>
    <body>
    <p><b>Name</b>: Description</p>
    </body>
    </html>
    Code (markup):
    Next, save this file with the name 'template.html' and put in a folder.

    Now, create a file called names.vbs (using notepad again) in the same folder and add the following code to the file:

    dim FSO, i, template
    set FSO = CreateObject("Scripting.FileSystemObject")
    dim FileName
    
    FileName = "male-african-names"
    
    for i = 1 to 50
    	set template = fso.getfile("template.html")
    
    	template.copy Filename & "-" & i & ".html", true
    next
    
    set template = nothing
    set FSO = nothing
    	
    Code (markup):
    Save and close and then double click on the names.vbs file. You should now have 500 files based on the template. You can of course change your template to be whatever you want.

    You still need to add the names and descriptions, and then upload the files to your server.

    I still think you would be better off with a simple database though.

    Jay
     
    jaymcc, Jan 29, 2006 IP
    Joobz likes this.
  11. MrAfrica

    MrAfrica Active Member

    Messages:
    44
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    93
    #11
    good-evening jaymcc,

    thanks alot as that trick does work, but i'm having trouble now... the first time it created 50 files... tried again, and it's not working... :confused:

    i need 294 pages for the male section: male-african-names.html

    i need 248 pages for the female section: female-african-names.html


    could u do that for me?

    sincerely,
    c.t.adams |||
     
    MrAfrica, Jan 29, 2006 IP
  12. jaymcc

    jaymcc Peon

    Messages:
    139
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #12
    Ok, change the vbs file to the following:

    dim FSO, i, template
    set FSO = CreateObject("Scripting.FileSystemObject")
    dim FileName
    
    FileName = "male-african-names"
    
    for i = 1 to 294
    	set template = fso.getfile("template.html")
    
    	template.copy Filename & "-" & i & ".html", true
    next
    
    
    FileName = "female-african-names"
    
    for i = 1 to 248
    	set template = fso.getfile("template.html")
    
    	template.copy Filename & "-" & i & ".html", true
    next
    
    set template = nothing
    set FSO = nothing
    	
    Code (markup):
     
    jaymcc, Jan 29, 2006 IP
  13. MrAfrica

    MrAfrica Active Member

    Messages:
    44
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    93
    #13
    i got it working again, as it didn't work when i set it to 294, so i went ahead and use 300... :D

    thanks once again...

    sincerely,
    c.t.adams-///
     
    MrAfrica, Jan 29, 2006 IP