answersLogoWhite

0

The Apache server's mod_rewrite module gives you the ability to transparently redirect one URL to another, without the user's knowledge. This opens up all sorts of possibilities, from simply redirecting old URLs to new addresses, to cleaning up the 'dirty' URLs coming from a poor publishing system - giving you URLs that are friendlier to both readers and search engines.

Create .htaccess file on your server's root directory and add blow lines.

RewriteEngine on

RewriteRule ^old\.HTML$ new.HTML

Let's go with line by line. First Line says the apache module to turn the mod_rewrite module on. Second line says that apache enging should redirect old.HTML URL to new.HTML

Thanks,

- Tejas Suthar

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

Website Redirect 301 Code?

A 301 signals a permanent redirect from one URL to another, meaning all users that request an old URL will be automatically sent to a new URL.


When time action redirect is applied in mikrotik?

The time action redirect in MikroTik RouterOS is used to redirect a user to a specific URL based on the time of day. This can be helpful for implementing time-based restrictions or providing different content based on the time. The redirect action is triggered when the specified time conditions are met.


Where do i find the url address?

The URL address of any webpage will be in the top bar on the browser.


Can you redirect to a different site using HTML?

*answers my own old question* Yes you can. with this handy gadget. the META tag! *angels sing in background* <meta http-equiv="Refresh" content="0;url=URL HERE">


How can one redirect their mail to a new address?

You can redirect your mail to a new address by using a mail forwarding service to redirect mail to your new address. These services cost a small fee and are offered from major companies such as USPS.


What is the web address for WikiAnswers?

The WikiAnswers URL is:http://wiki.answers.com


How do you redirect an IP address in Linux?

swagg


How many sites can be on one URL?

Only 1 site can be registered per URL. You can however have sub-domains where you have a word before the actually URL followed by a dot. You are also able to have extension pages which is where the URL has a "/" after it and it will redirect to more content.


Is a url a bibiography?

URL is a web address on the internet.


What is the meaning of a unique URL?

The URL that you see in the top address bar of your browser, or the URL you enter in your address bar to open a website.


How does a web address differ from a URL?

An URL is the exact internet address to find a particular page or document on it's host site. A web address is an address that takes you to a website, which might not be as specific as an URL.


How can you find out what a link is that you opened?

It depends on the application you are in. * Some applications will show a tool tip with the URL. * Some application will show the URL in the status bar on the bottom of the window. * Some application let you right-click and "Copy the URL" which you can then paste into Notepad (or the URL bar). To be 100% sure, you can set your browser settings to NOT automatically redirect. You will them be shown the original URL and your browser will prompt you to click to redirect - as well as displaying the URL you will be redirected to. Note: It's always safer to type in an URL than to follow a link in an email (or a web site).