Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
http://mywebsite.com/portraits shows 404 error
Old 07-20-2010, 06:51 PM http://mywebsite.com/portraits shows 404 error
World's Avatar
Extreme Talker

Posts: 202
Location: Santa Monica, CA
Trades: 0
I printed the address "mywebsite.com/portraits" on my most recent postcard.

Now when I tried to access this page, I get a 404 error - page not found.

But it exists.

If I put in mywebsite.com/portraits.html, the page loads.

What do I have to do so people can access this page without typing the .hmtl at the end (which nobody does).

I guess I lost quite some business through this problem.

Thanks for your tips.
World is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-20-2010, 07:20 PM Re: http://mywebsite.com/portraits shows 404 error
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
rename the file index.html and put it in a folder called portraits.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 07-20-2010, 11:47 PM Re: http://mywebsite.com/portraits shows 404 error
vivekar's Avatar
Webmaster Talker

Posts: 612
Trades: 0
Are you on Linux platform? Then, you can use mod_rewrite to redirect.

http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html

Code:
RewriteCond %{REQUEST_URI} ^/portraits
RewriteRule ^(.*) /portraits.html    [L]
__________________

Please login or register to view this content. Registration is FREE
(Active since 2003) |
Please login or register to view this content. Registration is FREE
vivekar is offline
Reply With Quote
View Public Profile Visit vivekar's homepage!
 
Old 08-09-2010, 10:16 PM Re: http://mywebsite.com/portraits shows 404 error
World's Avatar
Extreme Talker

Posts: 202
Location: Santa Monica, CA
Trades: 0
Quote:
Originally Posted by chrishirst View Post
rename the file index.html and put it in a folder called portraits.

I did that, and came to a very complex problem that for now I cannot solve.


What I did: I named the file index.html, and put it in the folder "portraits".


Now, when I go to the page www.mywebsite.com/portraits the file opens. And it's called exactly that.

But I cannot link from this page to any other page on my website. All links fail.

I tried to do ../ to get out of the folder to the next level, and then put the name of the page in that I wanted to link to.

Doesn't work.

I leave the ../ out, and it doesn't work, either.

The weirdest thing is, that when I enter my site through the main index page and access the portraits page, it has a different address.

Now it's called www.mywebsite.com/portraits/index.html.

Now all links work.

So, basically, with this method I can manage to land on that page, but I can't get out.
World is offline
Reply With Quote
View Public Profile
 
Old 08-10-2010, 01:04 AM Re: http://mywebsite.com/portraits shows 404 error
World's Avatar
Extreme Talker

Posts: 202
Location: Santa Monica, CA
Trades: 0
The weirdest thing: the malfunction seems to only happen when using Firefox on a Mac (maybe on Windows, too, but I couldn't test for that).
World is offline
Reply With Quote
View Public Profile
 
Old 08-10-2010, 09:00 AM Re: http://mywebsite.com/portraits shows 404 error
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
And the real URI is?
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 08-12-2010, 10:09 PM Re: http://mywebsite.com/portraits shows 404 error
Experienced Talker

Posts: 36
Name: Josh Rasri
Location: Upstate NY
Trades: 0
Doesn't it depend on what the webserver considers as the "default" document type? For M$ servers (aka IIS) it's usually default.asp, index.html, and index.html.

It sounds like the default document type is set to something other than index.html (if /portraits still isn't working).
__________________
John Rasri - GotLiveChat.com

Please login or register to view this content. Registration is FREE
Reseller/White Label Program
gotlivechat is offline
Reply With Quote
View Public Profile Visit gotlivechat's homepage!
 
Old 08-13-2010, 01:25 PM Re: http://mywebsite.com/portraits shows 404 error
World's Avatar
Extreme Talker

Posts: 202
Location: Santa Monica, CA
Trades: 0
This is so awkward. But what happened is that I fixed the problem, but forgot to refresh the browser.

Of course the browser went back to the old, bad code.

Once I had emptied the cache, everything worked.

World is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to http://mywebsite.com/portraits shows 404 error
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.49538 seconds with 12 queries