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
https://forums.phpfreaks.com/topic/140263-htaccess-url-speed/
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
https://forums.phpfreaks.com/topic/140263-htaccess-url-speed/#findComment-734070
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
https://forums.phpfreaks.com/topic/140263-htaccess-url-speed/#findComment-734073
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
https://forums.phpfreaks.com/topic/140263-htaccess-url-speed/#findComment-734077
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
https://forums.phpfreaks.com/topic/140263-htaccess-url-speed/#findComment-734082
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.