NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page Need help with two things

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

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 01-05-2007, 06:01 PM THREAD STARTER               #1 (permalink)
Account Closed
 
Morbid's Avatar
Join Date: Jan 2007
Posts: 7
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, 09:22 PM   #2 (permalink)
Senior Member
 
shockie's Avatar
Join Date: Dec 2006
Posts: 4,702
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
shockie is offline  
Old 01-05-2007, 10:05 PM THREAD STARTER               #3 (permalink)
Account Closed
 
Morbid's Avatar
Join Date: Jan 2007
Posts: 7
Morbid is an unknown quantity at this point
 



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, 10:08 PM   #4 (permalink)
Dan
Buy my domains.
 
Dan's Avatar
Join Date: Feb 2006
Posts: 2,796
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, 10:34 PM THREAD STARTER               #5 (permalink)
Account Closed
 
Morbid's Avatar
Join Date: Jan 2007
Posts: 7
Morbid is an unknown quantity at this point
 



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.
????: NamePros.com http://www.namepros.com/programming/277506-need-help-with-two-things.html

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 11:06 PM.
Morbid is offline  
Old 01-06-2007, 08:44 AM THREAD STARTER               #6 (permalink)
Account Closed
 
Morbid's Avatar
Join Date: Jan 2007
Posts: 7
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, 09:52 AM   #7 (permalink)
Senior Member
 
shockie's Avatar
Join Date: Dec 2006
Posts: 4,702
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
shockie is offline  
Old 01-06-2007, 10:07 AM THREAD STARTER               #8 (permalink)
Account Closed
 
Morbid's Avatar
Join Date: Jan 2007
Posts: 7
Morbid is an unknown quantity at this point
 



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.
????: NamePros.com http://www.namepros.com/showthread.php?t=277506

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 11:26 AM.
Morbid is offline  
Old 01-06-2007, 11:57 AM   #9 (permalink)
Senior Member
 
shockie's Avatar
Join Date: Dec 2006
Posts: 4,702
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
shockie is offline  
Old 01-06-2007, 12:09 PM THREAD STARTER               #10 (permalink)
Account Closed
 
Morbid's Avatar
Join Date: Jan 2007
Posts: 7
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, 02:06 PM   #11 (permalink)
Senior Member
 
shockie's Avatar
Join Date: Dec 2006
Posts: 4,702
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
shockie is offline  
Closed Thread


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


Liquid Web Smart Servers  
All times are GMT -7. The time now is 01:59 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger