General Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingGeneral Programming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old April 15th, 2003, 01:13 PM
listbuilder listbuilder is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 3 listbuilder User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to listbuilder
Question Search Engine Friendly with mod_rewrite?

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

Reply With Quote
  #2  
Old April 15th, 2003, 05:05 PM
hadley hadley is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Posts: 63 hadley User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
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

Reply With Quote
  #3  
Old April 15th, 2003, 10:01 PM
jpenn jpenn is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Location: Washington, DC
Posts: 317 jpenn User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 m 3 sec
Reputation Power: 7
Quote:
RewriteEngine On
RewriteRule ^/(.*)/(.*).php /tutorials.php?catname=$1&id=$2

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.




Reply With Quote
  #4  
Old April 16th, 2003, 11:21 AM
listbuilder listbuilder is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Posts: 3 listbuilder User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to listbuilder
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

Reply With Quote
  #5  
Old April 16th, 2003, 12:25 PM
jpenn jpenn is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Location: Washington, DC
Posts: 317 jpenn User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 m 3 sec
Reputation Power: 7
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 - - -

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingGeneral Programming Help > Search Engine Friendly with mod_rewrite?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT