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
slash at the end of my url
Old 05-24-2009, 02:48 AM slash at the end of my url
Average Talker

Posts: 19
Name: bob
Trades: 0
Hello,

I have a issue with my site and i just cant figure it out.
when I search google for my site it has an extra slash at the end of the url, (www.mysite.com/about/) when i click the link the page loads but not the images, if i remove the slash everything loads perfectly.

Why would that be happing and how would I fix it. very frustrating

Thanks for you help.
A1acran is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 05-24-2009, 11:20 AM Re: slash at the end of my url
Novice Talker

Posts: 9
Name: no
Trades: 0
sorry to say 404
__________________

Please login or register to view this content. Registration is FREE
d3sc3n7 is offline
Reply With Quote
View Public Profile
 
Old 05-24-2009, 11:41 AM Re: slash at the end of my url
Average Talker

Posts: 19
Name: bob
Trades: 0
Quote:
Originally Posted by d3sc3n7 View Post
sorry to say 404
If my 404 page came up for for this it would be fine, its that the page loads and not the images, all my links are images and nothing works.

Thanks for the help.
A1acran is offline
Reply With Quote
View Public Profile
 
Old 05-24-2009, 11:55 AM Re: slash at the end of my url
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
how do you have your image paths? Make them go from root instead of relative to the document.

In other words:
HTML Code:
<img src="/images/image.jpg">
Instead of without the preceding slash.
__________________
I build web things. I work for the startup
Please login or register to view this content. Registration is FREE
.
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 05-24-2009, 12:25 PM Re: slash at the end of my url
Average Talker

Posts: 19
Name: bob
Trades: 0
Quote:
Originally Posted by wayfarer07 View Post
how do you have your image paths? Make them go from root instead of relative to the document.

In other words:
HTML Code:
<img src="/images/image.jpg">
Instead of without the preceding slash.
Thanks wayfarer, Yes that does seem to work with my images, but my links are messed up too. www.mysite.com/about/ with the slash at the end when I click on my links I get www.mysite.com/about/contact.html insted of www.mysite.com/contact.html.

I'm thinking I need to config my .htaccess file somehow to fix this. Just not sure how.
A1acran is offline
Reply With Quote
View Public Profile
 
Old 05-24-2009, 02:06 PM Re: slash at the end of my url
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
it's the same issue, just write your links:
HTML Code:
<a href="/contact.html">Contact Us</a>
instead of without the preceding slash. All HTML or CSS paths will obey this rule, just as:
HTML Code:
<a href="/">Home</a>
Will link to your home page.
__________________
I build web things. I work for the startup
Please login or register to view this content. Registration is FREE
.
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 05-24-2009, 02:08 PM Re: slash at the end of my url
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
Oh, and I forgot. If you don't want to change all of your links, you can add a BASE tag between your <head> tags:
HTML Code:
<base href="http://my-website.com/" />
__________________
I build web things. I work for the startup
Please login or register to view this content. Registration is FREE
.
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 05-24-2009, 05:21 PM Re: slash at the end of my url
Average Talker

Posts: 19
Name: bob
Trades: 0
Quote:
Originally Posted by wayfarer07 View Post
it's the same issue, just write your links:
HTML Code:
<a href="/contact.html">Contact Us</a>
instead of without the preceding slash. All HTML or CSS paths will obey this rule, just as:
HTML Code:
<a href="/">Home</a>
Will link to your home page.
yup that fixed it. I had to change all my links and images to ../images/image.jpg to get it working. Thank you
A1acran is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to slash at the end of my url
 

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.33831 seconds with 12 queries