What is url re writing?

What is url re writing?
How to do it? and what is the purpose of re writing url??

URL rewriting is the procedure of intercepting an incoming Web request and mechanically redirecting it to a different URL. Discusses the various techniques for implementing URL rewriting, and examines real-world scenarios of URL rewriting. :slight_smile:

As Sam says, it means taking a URL that someone hits on, and using a formula/algorithm, sending them to a different page.

Two main reasons for doing it are:

[list][]if you change the architecture of the site, you might have a different URL structure. To keep all old links and bookmarks valid, you might need to rewrite them, so that, eg, when someone hits on website.com/old.asp?section=help&page=purchase, they are redirected to website.com/new/help/purchase.php.
]if your site platform creates complicated URLs but you want to have a user-friendly version of them that is easier for people to remember and type in.[/list]

There are several tutorials on the internet how to make use of url rewriting.
Check for. htaccess + php (which is the most common and simple to use).


URL rewriting is an important regarding SEO. There are lot of tutorial on it. All search engines like the short url and also can not understand ? # these signs.

(I think) It’s true that search engines ignore anything that comes after # in a URL, because that should only be the result of an internal link, and so there’s nothing for them to look at that they aren’t already looking at.

But it is not true to say that search engines don’t understand queries. They have been indexing query URLs for years. Google have explicitly said that if your site is dynamically created using query parameters in the URL then you should use URLs that reflect that, and rewriting them without the queries so that they look like static URLs is likely to damage your position in the rankings because their index will get confused about the structure of your site.

url rewriting is the procedure of making dynamically generated urls to look like static urls. It is also called as pretty urls or permalinks. This practices makes the urls more easy to remember and helps SEO as search engines tends not to rank dynamic urls.
example :
dynamic Url : www.yoursitename.com/?p=123
Rewritten Url : www.yoursitename.com/home

You can find a good definition en.wikipedia.org/wiki/Rewrite_engine
At httpd.apache.org/docs/2.0/misc/rewriteguide.html yyou can find a guide.

See message #6

Just to make it clear. Ignore the fools who say URL rewriting helps SEO. It only will help SEO when you move things. Otherwise, URL rewritting if for humans. ONLY! Search Engines, aka., computers. DO NOT CARE. They only care about the content. A pretty URL is not going to make the content any better or worse.

Pretty URLs are purely for humans.

Off Topic:

I wonder if its just me…

But when ever I see a user with a low post count and the only thing in there signature is links to sites not even relating to Sitepoint’s subject matter. It makes me think they are only here to try to “create” a backlink. Aka., spam us with fluff.

No, it isn’t just you. Little do they realise that signature links are “nofollow”, and some clever advisors have a special tool that allows them to highlight all links that are not “nofollow” so they can easily pick out people who fake a signature to get around either the 90 day waiting period or the “nofollow” rule, and they are punished for it.

Of course, it helps the staff and gets things done quicker if you “red flag” any posts that you think might be dodgy, and that will prompt a mod to take a closer look.

URL rewriting is converting dynamic URL to static URL. A static is a URL that doesn’t change, and doesn’t have variable strings. URL should not have too many parameters.

Everything that needs to be said has been said.

Thread closed.