|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
I need help on making my article directory search engine friendly which my members submitted their articles to it which will add the url which have the ?, id=0 etc which search engine will ignore.
As to use mod_rewrite function to fix this problem, will need to access to httpd.conf file and .htacess file as I don't have access to some files. I hope you can help me out on getting this problem resolved. Take a look at my article directory at: URL example of my article url links: URL URL I need all submitted articles and new articles submitted to my article directory will be rewrited in this format: URL URL Replacing all the cat_id with the article directory title shown below: Internet Marketing Permission Email Marketing Email Advertising Opt-in Email Lists Follow-up Autoresponder Viral Marketing Online Promotion Online Business Business Startup Search Engine Traffic Articles Newsletters Free Ebooks Free Ezines Free Advertising Free Ezine Advertising Free Content Article Submission Ezine Directory Ezine Ads Swaping and so on..... I really hope you can help me out on this issue and refer to this article: URL Rgds, Jun Han |
|
#2
|
|||
|
|||
|
These days most search engines don't ignore dynamic pages (ie. pages with a query string on the end). Most just don't follow links from those pages. So as long as you have some pages that don't have a query string on the end (eg. your index page) you should be ok.
If you do want to go ahead and use mod_rewrite with the naming scheme you've given, you'll need to change the way your index.htm page works. Since you're now using the category name, you'll need to modify your code to look up your articles based on name not id. You'll then need to add something like the following into your .htaccess file: RewriteEngine On RewriteRule ^/(.*)/(.*).php /tutorials.php?catname=$1&id=$2 Hadley |
|
#3
|
|||
|
|||
|
Quote:
arggg -> Code:
RewriteEngine On RewriteRule ^/(.*)/(.*).php /tutorials.php?catname=$1&id=$2 [PT,L] A little more correct. Add the PT to avoid image rewriting - without that you may get the broken image symbols in your pages...
__________________
~ Joe Penn We work for free to help make this a valuable resource on the internet. Do you appreciate the help - did we provide help that will help you prosper and help that has contributed to sharpening your current skill set? Show your appreciation and purchase something from our Amazon Wishlist's - it's simple and a great way to say thank you. |
|
#4
|
|||
|
|||
|
Hi,
When I try to enter this code in my .htaccess but it doesn't rewrite my url at all. What is the problem man? RewriteEngine On RewriteRule ^/(.*)/(.*).htm /index.htm?cat_id=$1&id=$2 [PT,L] If possible, I would be very much appreciated if you can contact me directly via ICQ: 146746391 Rgds, Jun Han |
|
#5
|
|||
|
|||
|
Do you have mod_rewrite available on your server? or is it compiled and loaded on your server? There are quite a few servers out there that restrict the use of it as they claim it puts more load on the hardware. Post your php info page - - -
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > Search Engine Friendly with mod_rewrite? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|