Membership is FREE – with unlimited access to all features, tools, and discussions. Premium accounts get benefits like banner ads and newsletter exposure. ✅ Signature links are now free for all. 🚫 No AI-generated (LLM) posts allowed. Share your own thoughts and experience — accounts may be terminated for violations.

How To technical question 100 DNF

Status
Not open for further replies.

bidawinner

Level 9
Legacy Exclusive Member
Joined
Jul 12, 2002
Messages
3,571
Reaction score
0
I have a domain with previous link pop and as usual I set up servers for the domain then check where the traffic is going to :
for example if I hada domain widgets.us and the previous owner had 50 pages like widegets.us/blue.htm widgets.us/red.htm widgets.us/green.htm ..

Then I would of course build the same pages to gather whatever treaffic was their before..

Well today I stumbled across a problem ..

I am seeing seeing in my logs.. old pages like widgets.us/blue/

widgets.us/green/ etc.. without htm or html or any extension?

So I made a few page named widgets.us/blue (wont let me add a trailing /)

The page actually works BUT when I look at all the old inbound links they dont work ..

I find a website that has a inbound link to the domain and click on the link http://widgets.us/blue/ and it wont resolve to the page I made http://widgets.us/blue

100 DNF to help me sort this out
 

Spider

Level 8
Legacy Platinum Member
Joined
Apr 9, 2003
Messages
1,578
Reaction score
0
What you should do is create a .htaccess file that will redirect all 404 traffic to your index. The top line should say

ErrorDocument 404 /index.htm or ErrorDocument 404 http://www.yahoo.com if you want to redirect it to an entirely different website.

Place the file in the root folder of the domain, the same place your index.htm file is.
 

bidawinner

Level 9
Legacy Exclusive Member
Joined
Jul 12, 2002
Messages
3,571
Reaction score
0
Ok, This better explains the problem

http://inelegant.org/ddp/07007/

What I want to know is if a website has a link (widgets.us/blue/ )to another website (a domain..that you just purchased) and you want to create that same page widgets.us/blue/ BUT .. Front Front page wont let you creat a page with the trailing "/"
. so I can only create widgets.us/blue ..

So how do I get around this ?
 

Spider

Level 8
Legacy Platinum Member
Joined
Apr 9, 2003
Messages
1,578
Reaction score
0
the folder is blue, the file is just an index. create a folder called blue and make that page called index.htm. This will fix your problem with widgets.us/blue/ not going to a page.
 

bidawinner

Level 9
Legacy Exclusive Member
Joined
Jul 12, 2002
Messages
3,571
Reaction score
0
Originally posted by Spider
the folder is blue, the file is just an index. create a folder called blue and make that page called index.htm. This will fix your problem with widgets.us/blue/ not going to a page.

Got it..

Its just a folder ..doh.. Thanks Spider ! DNf on the way..
 

Restecpa

Level 6
Legacy Platinum Member
Joined
Mar 5, 2003
Messages
525
Reaction score
17
On most servers index.html is being searched for if there is a trailing / in the url. If no index.html is found it searches for the next best guess (index.htm, index.php, index.shtml) unless otherwise specified in the config.. So when you want to create a site using folder structure as url instead of containing names of actual files, just name the main file index.html and youre good to go.. ;)
 
Status
Not open for further replies.

Who has viewed this thread (Total: 1) View details

Who has watched this thread (Total: 2) View details

The Rule #1

Do not insult any other member. Be polite and do business. Thank you!

Members Online

Premium Members

Upcoming events

Our Mods' Businesses

*the exceptional businesses of our esteemed moderators

Top Bottom