So I know it's better for SEO, etc to have http://www.site.com/page1/ instead of http://www.site.com/page.php?id=1 or whatever. So how do you do it? I'm assuming it uses PHP, maybe .htaccess too, but a link to somewhere that explains or an explination would be great Thanks, TS
research "Mod_Rewrite" That is how it is done, and it coded using mostly regex (regular expressions) in, as you know, the .htaccess file. I own this book, and highly recommend it. www. amazon .com/Definitive-Guide-Apache-mod_rewrite/dp/1590595610/ref=sr_1_1?ie=UTF8&s=books&qid=1210643808&sr=8-1 remove the space before and after amazon
I use links in a format that don't require htaccess: http://site.com/?Page*Variable1*.... Code (markup): and then I get the values using PHP: list($page,$variables1,...) = explode('*',$_SERVER['QUERY_STRING']); PHP: Another option you have is htaccess. Peace,
Use the following in your .htaccess RewriteEngine On RewriteRule ^LINK/(.*)\.html index.php?foo=$1 [L] Code (markup): This will redirect yoursite.com/LINK/variable1.html to index.php?foo=variable1 Hope that helps!
Hi, there is another issue when converting internal links. Here is the problem: I have a site, say, asite.com, I set up a 301 redirect in a .htaccess file so that everyone who types asite.com get to www .asite.com, and now I need to replace all internal links on my site with URLs containing www. Is there a way to do that using .htaccess?
I have found a solution. To tell the truth, it was a Joomla issue. If anyone experiences such a trouble, here is a solution to make a Joomla site SEO friendly: - On Google webmasters' page, check the first option so that your site will be seen as www .example.com. - In Joomla, edit the configuration.php file in /public_html and set "live site" to the URL with "www". Joomla internal links will then display correctly. - To enhance Web site security, it is advisable to move your configuration.php out of public_html directory to your root directory and renaming it to "site.conf". Then you should change the contents of the original configuration.php to: <? require( ‘/home/USERNAME/site.conf’ ); ?> where USERNAME is your account name.
check this article about exactly doing this...... http://roshanbh.com.np/2008/02/hide-php-url-rewriting-htaccess.html