answersLogoWhite

0


Best Answer

URL rewriting is a technique that allows you to use a URL that actually goes to another URL within the same website. This is used mostly in dynamic database generated websites so the final URL is more Search Engine friendly. Example: You have an online store selling widgets. The page for the red widgets is: www.yourwidgetstore.com/products.php?productID=50 Using URL rewrites you could change this to: www.yourwidgetstore.com/red-widgets.html Both of those links would go to the same place but the second one would have much more value to the search engines. To do this you need to be using the .htaccess file. Example: RewriteEngine On RewriteRule red-widgets\.html www.yourwidgetstore.com/products.php?productID=50 To avoid any duplicate links within your site, you would then only link to: www.yourwidgetstore.com/red-widgets.html

User Avatar

Wiki User

15y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is URL rewriting in PHP?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Algebra

The PHP syntax is most similar to?

Perl and C


When rewriting an exponential expression with a negative exponent and a positive base to an expression containing only a positive exponent does the sign of the base change?

No.


What is the difference between php and mysql?

A simple answer is that PHP is a language while MYSQL is a software.PHPPHP is a interpreted language used mostly for server-side scripting. It uses an interpreter given by PHP.net website used along with apache or anyother server.It is similar to languages as asp , jsp , python scripts as they nearly perform similar function of serverside scripting.MYSQLMYSQL on the other hand is a database server / client (depending upon which one you get)The MYSQL uses SQL (structured Query Language ) Pronounced as Sequel, To store and retrieve data.Most developers in web specially php use mysql on server side, but it is not limited to php it can be used along with almost all the languages to store and retrive data.


What is coercion in php?

Coercion, type coercion or type conversion is the process of altering the data type of a variable into another data type. PHP uses implicit type conversion (aka. Weak/Loose Typing) so it is not necessary to declare the type of a variable. For instance, the following will not produce any errors: <?php $foo = "A string"; $foo = 1; $foo = array(); ?> You can however explicitly cast variables to a certain type: <?php $int = (int)4.5/2; ?> In contrast, strongly typed languages such as C/C++/Java force you to declare the type of value a variable will hold and explicitly state the new type to perform a conversion; not doing so will result in a compiler error.


The square root of -1 is an number?

The Square root of -1 is an _________ number Possible answers: imaginary, infinite, indefinite *You may be taking the same [url=http://intelligence-test.net/part_4/?m=3]online test[/url] that I am :D * * * * * And the answer is ... IMAGINARY!

Related questions

How do you get the url in a php website?

Copy the URL with the .php, The .php is part of the page.


How long does htaccess URL rewriting take?

A few minutes, there isn't much to do in the way of URL rewriting using htaccess, its a simple process.


What is the GET method in PHP?

The GET method in PHP allows you to grab information from the URL to use in your script.For example, say you are on the URL index.php?id=1 you could then in the PHP script grab the id using the GET method to use in your script.


What does php mean at the end of an url?

Websites are servers that present pages as they are requested. Pages, in this context, are merely different kinds of files -- much like images and word documents. The "php" appended at the end of a URL indicates you are requesting a PHP type file, which is composed with the PHP language. PHP is a programming language that stands for "PHP: Hypertext Preprocessor." It is used to develop websites that present dynamic content and allow page-to-page interaction, such as forums and wikis.


How do you compile PHP so that it supports T1Lib?

Php is text based. You therefore can not compile it but you maybe able to convert it by writing the basic functions and rewriting it out in any other language.


How do you save image url in database by using php?

To save an image URL in a database using PHP, you can create a table with a column to store the URL. When inserting data, you can use SQL queries with PHP to insert the URL into the database. Make sure to properly sanitize and validate the input to prevent SQL injection or other security vulnerabilities.


How do you give href toanother php page?

Here is the code below to redirect a webpage using php: <?php header('Location: url of the webpage'); // example: header('Location: index.php') exit; // exit after redirection is very important as php executes code line by line ?>


Where can you find a video website for kids?

Here is a List: [url]http://askyourpc.com/blog1.php/fun/on-the-web/is-there-a-youtube-for-kids[/url] or go here: www.totlol.com


What are the answers to test2 on Howrse?

http://www.howrseinfo.com/level2.php this is the URL for a page with all of the answers for this quiz


Answers to howrsequiznumber 8?

http://www.howrseinfo.com/level8.php this is the URL to the page with all of the answers to this quiz


What is the maximum size of url address in browser?

100 characters (I think because that is the maximum for the php _GET Mothod)


How do you get the URL in PHP?

<? // Answering "How do you get the URL in php?" // Your Function for getting URL data function curPageURL() { $pageURL = 'http'; if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";} $pageURL .= "://"; if ($_SERVER["SERVER_PORT"] != "80") { $pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"]; } else { $pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"]; } return $pageURL; } // Lets echo it out on your page ;) echo curPageURL(); // Hope it works :) ?>