Saturday, August 29, 2009

Re: SEO Friendly Redirection Issue

I would bet that you want in fact redirect the htm address to some php page...
You will need some .htaccess redirection to do that. Be very careful if you are not falmiliar with this
- Reference info is at http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html but this is sometimes difficult to chew
- You will find at http://www.noupe.com/php/htaccess-techniques.html something easier to understand, although it does not directly tackles page rewriting
- http://www.askapache.com/htaccess/mod_rewrite-tips-and-tricks.html#default-mod-rewrite-hint provides more info and examples
- and to be complete the page http://www.sitepoint.com/print/apache-mod_rewrite-examples/ will be really helpful

If you wanted really to redirect a php page to an html file, you might consider 2 options:
1 - If in fact you just want to display the content of the htm file, simply place in your php file the following code
<?php
...
include "mission.htm";   // or include "mission.htm/veinlite-pedi.htm";
...?>
2 - Just place in your php code the following piece. YOU MUST NOT HAVE SENT ANY CHARACTER, including (very common trap) any space or empty line before <?php
<?php
...
header ('http://www.domainname.com/page.php?view=mission');
// code below will NOT execute

-----------------
Final note:
Address rewriting is in fact 2 steps:
1 - Be sure that if someone call the smart-named url, they get the correct content on their display (ie, translate /mission to /index.php?view=mission)
2 - When generating links in your pages by your php (or other language) script, be sure to display the smart-named url, ie display /mission instead of /index.php?view=mission)

If you are using any CMS (content management system), wether it is a pure cms, a blog, a wiki,etc.. most of the time they have a "SEF" (search-engine-friendly) option, where they give you step by step instructions on how to to it (including htaccess)





2009/8/29 Arun VS <seo.avsankar@gmail.com>

Hi Guys,
I am new to this Group please help me in SEO Friendly Redirection
im my page address is going as
www.domainname.com/page.php?view=mission
http://www.domainname.com/product-detail.php?ProID=Veinlite%20PEDI

i need to rewrite URL to page.
www.domainname.com/mission.htm
www.domainname.com/mission.htm/veinlite-pedi.htm

can any one help me i tried a lot.





--
--------------
Marine expose à Luxembourg du 10 septembre au 10 octobre 2009
http://www.artgallery.lu/exhibitions.html
Le site http://www.marka-online.org a été refait
Marine sur Twitter: http://twitter.com/marineka


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Google Search Engine Optimization SEO Google - MSN - Yahoo" group.
To post to this group, send email to seo1@googlegroups.com
To unsubscribe from this group, send email to seo1+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/seo1?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments:

Post a Comment