How do your forward a url

In my time of need you guys have always an answer!!! I started website design last year within October of 2006, I became a newbie (still am) and didn’t learn about file and folder shape. Now I’m a bit more advanced and am starting to fix my first site i did as some sort of school project 2009. The site started to be pretty popular, and it is linked to a great many other sites and discussion boards. I want to unclutter up my root folder but which will change the URLs of most of the most important pages. Is there the easiest way for me to forward some URLs I don’t need every one of the pages on our site forwarded just about 2 or 3. Or should I merely start fresh Your own input please.

thanks beforehand

I could provide you with a longer resolution, but need to run an errand, so here’s a fast link.

I do think you’re talking related to putting all photos of hospitality attire directory (called " photos" ),
and also maybe videos around another directory (called " video" ), and so on. things like that
To ensure that your main main directory only contains the key HTML pages

As soon as you move files in order to other directories (you’re getting in touch with them folders, although in server terms,
these are called directories), you have got to alter every HTML file that sources them.

Example, you may have experienced lines like these:

< img src=" myphoto. jpg" >

Today, after moving your photos to an additional directory, you’ll ought to change each range…

< img src=" /photos/myphoto. jpg" >

The change will reflect the road to the directory the place that the photos are stashed.

==============

There are actually two methods in order to defining paths… utter and relative

Utter: you define the files considering the complete URL:

< img src=" http: //www. mysite. com/photos/myphoto. jpg" >

Distant relative: you define the files considering the path that is relative towards the directory
you are already using:

< img src=" /photos/myphoto. jpg" >

Which is just as:

< img src=". /photos/myphoto. jpg" >

. / ( or perhaps / ) means to start at the current directory
.. / means to go back you directory

==============

If you create a brand new directory (example: sports) and also put a record into that
submission site called, " index chart. html", " index chart. htm" or " index chart. php"… when anyone view
this directory, it could automatically display in which index webpage:

http: //www. mysite. com/sports

because you didn’t specify the file to examine, it will suppose the " index" site.

.

If you are talking about forwarding a good entire URL making sure that any future requests for this URL are routinely " forwarded" into the new location, then your best bet is having. htaccess (if you are using Apache servers):

Code:
 Redirect 301 /OldPageLocation. htm http: //www. YourWebsite. com/NewPageLocation. htm

Hey cctech thanks with the advice. Where must i enter that signal

The very first thing is to see whether your website hosted in an Apache equipment. If you aren’t sure, your webhost is able to tell you.

Determine and then reply back after which it we can go to the next phase of actually building the file that may contain the refocus code.

PHP:

< php
      header
'Location:   http: //www. yoursite. com/new_page. html'  ) ;
>

remove all the code through the page you would like to forward from adding that code, change the address into the new page, that will sort it

What solidgold posted will work, just make convinced your server " likes" php.

However, one thing I would prefer to point out is the fact solidgold has demonstrated the right way to create a 302 redirect that is certainly not search serp friendly. With some sort of slight modification to help solidgold’s entry, this may create a 301 redirect that is certainly search engine warm and friendly:

PHP:

  < php 
header
("HTTP/1. 1  301  Moved  Permanently");  
header("Location:   http: //www. yoursite. com/new_page. html");  
>

Ok I acquired it!!!! Thanks for anyone your help!!!

Nic.

This entry was posted in Web Design and tagged , , , , , , , , , , , , , , , , . Bookmark the permalink.

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *