Jump to content

htaccess url speed


vinpkl

Recommended Posts

hi all

 

i m using htaccess to rewrite my urls.

 

so i have to use the full path in all my images & scripts like

http://www.domain.com/images/logo.gif

 

i would like to know that if in my page i write everytime the full path for all the images then will my page take much time to load

 

vineet

Link to comment
Share on other sites

You shouldn't notice any difference.

 

Though, you can just use /images/logo.gif instead of http://www.domain.com/images/logo.gif

 

hi Semi

 

thanks for the reply.

 

i tried using /images/logo.gif but was not able to view my images.

 

so i have to add to the full path.

 

but if it doesnt make diference in loading then i have no prob in writing full path

 

vineet

Link to comment
Share on other sites

Strictly speaking, http://www.domain.com/images/logo.gif should take longer than /images/logo.gif because you're sending 21 more bytes. It's negligible though and by no means noticeable.

 

hi daniel

 

as u said it will not be noticeable then i can use full path.

 

earlier i had doubt that it my slow the loading of page.

 

but u clear my doubts.

 

thanks.

 

vineet

Link to comment
Share on other sites

as u said it will not be noticeable then i can use full path.

 

Consider this: Your name is Google. You serve millions of pages every day. Now imagine that you started to use the full URL instead of just the path on all links, images, etc. The size difference could easily amount of several terabytes per month.

 

The unnoticeableness only applies to a single request taken out of context.

Link to comment
Share on other sites

as u said it will not be noticeable then i can use full path.

 

Consider this: Your name is Google. You serve millions of pages every day. Now imagine that you started to use the full URL instead of just the path on all links, images, etc. The size difference could easily amount of several terabytes per month.

 

The unnoticeableness only applies to a single request taken out of context.

 

hi daniel

 

i keep this in mind.

 

but will have to use the full path till i get any alternative.

 

also my website will be for the limited one country. we cannot compete with google.

 

vineet

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.