answersLogoWhite

0

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

Still curious? Ask our experts.

Chat with our AI personalities

ReneRene
Change my mind. I dare you.
Chat with Rene
SteveSteve
Knowledge is a journey, you know? We'll get there.
Chat with Steve
MaxineMaxine
I respect you enough to keep it real.
Chat with Maxine

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!