[advanced search]
 

Go Back   NamePros.com > Discussion > Web Design & Development > Programming

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.


Closed Thread
 
LinkBack Thread Tools
Old 01-05-2007, 05:01 PM   #1 (permalink)
Account Closed
 
Morbid's Avatar
 
Join Date: Jan 2007
Posts: 7
0.00 NP$ (Donate)

Morbid is an unknown quantity at this point


Question Need help with two things

Hey guys I just joined and this is my first post.


My first question is how do I change my front page of my site to go to site.com/index/ when I type my site in instead of having to type site.com/index/? When I got to my regular site name without anything I get an Index of / page with my index folder that had my PHProxy in it.


My second question is how do I put ads or images on the front page on my PHProxy? Like googles ads or a banner ad at the top above it and topsite things and/or ads at the bottom. Also how do you take the "PHProxy" text away thats in the header type thing on my page?
Morbid is offline  
Old 01-05-2007, 08:22 PM   #2 (permalink)
Senior Member
 
shockie's Avatar
 
Join Date: Dec 2006
Posts: 4,478
1,025.10 NP$ (Donate)

shockie has a reputation beyond reputeshockie has a reputation beyond reputeshockie has a reputation beyond reputeshockie has a reputation beyond reputeshockie has a reputation beyond reputeshockie has a reputation beyond reputeshockie has a reputation beyond reputeshockie has a reputation beyond reputeshockie has a reputation beyond reputeshockie has a reputation beyond reputeshockie has a reputation beyond repute


you can redirect "site.com/index.htm" to "site.com/index/index.htm" using meta refresh (google it up).

btw, feel free to edit/reword your questions.
shockie is offline  
Old 01-05-2007, 09:05 PM   #3 (permalink)
Account Closed
 
Morbid's Avatar
 
Join Date: Jan 2007
Posts: 7
0.00 NP$ (Donate)

Morbid is an unknown quantity at this point


Quote:
Originally Posted by shockie
you can redirect "site.com/index.htm" to "site.com/index/index.htm" using meta refresh (google it up).
I tried that... I tried index.html, index.htm, index.php, home.html, home.htm, and all the others and when I type site.com it still only shows Index of /.


The questions about PHProxy were how do I put images (like for a header) or ads above and below the proxy thing? Also how do I take out the PHProxy from the header (look at the attachment foe the PHProxy text im talking about)?
Attached Images
File Type: bmp prox.bmp (70.2 KB, 8 views)
Morbid is offline  
Old 01-05-2007, 09:08 PM   #4 (permalink)
Dan
Buy my domains.
 
Dan's Avatar
 
Join Date: Feb 2006
Posts: 2,801
56.00 NP$ (Donate)

Dan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant futureDan has a brilliant future

Autism Autism Autism Autism Autism Autism Autism
Put the following line into your .htaccess:
Directory Index index/index.htm

If it doesn't work, remove the space from Directory Index and make it DirectoryIndex
Dan is offline  
Old 01-05-2007, 09:34 PM   #5 (permalink)
Account Closed
 
Morbid's Avatar
 
Join Date: Jan 2007
Posts: 7
0.00 NP$ (Donate)

Morbid is an unknown quantity at this point


Quote:
Originally Posted by Morbid
I made the .htaccess and put that line in and when I got to my website it gives me "No input file specified." text on the page and only that.

Also I have it in my index.htm file to redirect to my domain which is .net/index/ but itll go and say that no input thing and when I look at the address bar it shows my site .com/index/ instead. Why does it do this?
Well now ive got a different problem, the one above I solved. Before I started messing with htaccess and stuff when I went to mysite.com/index/ it would show my proxy. Now when I go there (by typing it in or the redirect from homepage) all it does is show the index of the folder. I have to go to index/index.php to get to the proxy now. I dont want it to do that.

Last edited by Morbid; 01-05-2007 at 10:06 PM.
Morbid is offline  
Old 01-06-2007, 07:44 AM   #6 (permalink)
Account Closed
 
Morbid's Avatar
 
Join Date: Jan 2007
Posts: 7
0.00 NP$ (Donate)

Morbid is an unknown quantity at this point


Ok, I decided to just drop the whole /index/ folder and my proxy is now at site.com when you type it in. I just need to know how to put ads and text/html above and below the proxy form and how to get rid of the PHProxy text.

Thanks for your help so far guys, rep added.
Morbid is offline  
Old 01-06-2007, 08:52 AM   #7 (permalink)
Senior Member
 
shockie's Avatar
 
Join Date: Dec 2006
Posts: 4,478
1,025.10 NP$ (Donate)

shockie has a reputation beyond reputeshockie has a reputation beyond reputeshockie has a reputation beyond reputeshockie has a reputation beyond reputeshockie has a reputation beyond reputeshockie has a reputation beyond reputeshockie has a reputation beyond reputeshockie has a reputation beyond reputeshockie has a reputation beyond reputeshockie has a reputation beyond reputeshockie has a reputation beyond repute


it would help if i could see a working version of what you have now, but i *think* you need to put

Code:
echo(' 
[ad code] 
');
in your index.php, above wherever it displays the "PHProxy" text.
shockie is offline  
Old 01-06-2007, 09:07 AM   #8 (permalink)
Account Closed
 
Morbid's Avatar
 
Join Date: Jan 2007
Posts: 7
0.00 NP$ (Donate)

Morbid is an unknown quantity at this point


Quote:
Originally Posted by shockie
it would help if i could see a working version of what you have now, but i *think* you need to put

Code:
echo(' 
[ad code] 
');
in your index.php, above wherever it displays the "PHProxy" text.
Is the PHProxy text you talking about the one that I want to get rid of? Because ive looked through every single file that came with it and there is no place for me to change it.

Now I refresh my website and it doesnt have my proxy there anymore its just showing my index of crap again. It keeps doing this, my redirects or other changes only last for like 30 minutes and then show indexs.

Ill PM you the site URL since its all messed up and I dont want to post it here.


EDIT: I found why my site messed up so its working now when I type in the URL. Still need to figure out how to remove the PHProxy text from the top.
My site is ShadowBrowse.net if it helps any.

Last edited by Morbid; 01-06-2007 at 10:26 AM.
Morbid is offline  
Old 01-06-2007, 10:57 AM   #9 (permalink)
Senior Member
 
shockie's Avatar
 
Join Date: Dec 2006
Posts: 4,478
1,025.10 NP$ (Donate)

shockie has a reputation beyond reputeshockie has a reputation beyond reputeshockie has a reputation beyond reputeshockie has a reputation beyond reputeshockie has a reputation beyond reputeshockie has a reputation beyond reputeshockie has a reputation beyond reputeshockie has a reputation beyond reputeshockie has a reputation beyond reputeshockie has a reputation beyond reputeshockie has a reputation beyond repute


to put adcode/text/html above the "PHProxy" text, put that code snippet above into the file index.php.

try putting the code snippet in different places in the index.php file, until you've found where you want it. (it should be somewhere in the top half of the file).
shockie is offline  
Old 01-06-2007, 11:09 AM   #10 (permalink)
Account Closed
 
Morbid's Avatar
 
Join Date: Jan 2007
Posts: 7
0.00 NP$ (Donate)

Morbid is an unknown quantity at this point


You always find things when you arent looking. I found the PHProxy text part when I looked for over an hour looking specifically for it. Thanks for all your help, shockie.
Morbid is offline  
Old 01-06-2007, 01:06 PM   #11 (permalink)
Senior Member
 
shockie's Avatar
 
Join Date: Dec 2006
Posts: 4,478
1,025.10 NP$ (Donate)

shockie has a reputation beyond reputeshockie has a reputation beyond reputeshockie has a reputation beyond reputeshockie has a reputation beyond reputeshockie has a reputation beyond reputeshockie has a reputation beyond reputeshockie has a reputation beyond reputeshockie has a reputation beyond reputeshockie has a reputation beyond reputeshockie has a reputation beyond reputeshockie has a reputation beyond repute


lol you're welcome... i just checked your site and it seems to have worked!!
shockie is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 05:27 PM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85