General Chat
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsGeneralGeneral Chat

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old October 21st, 2008, 03:30 AM
mojtaba_g79's Avatar
mojtaba_g79 mojtaba_g79 is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 63 mojtaba_g79 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 23 h 42 m 24 sec
Reputation Power: 3
Question All should I do for SEO

Hello;
I programmed a system. I want to turn it to SEO but don't know what to do?
for example one of my url is :
http://localhost/project/?act=show_content&show_type=once&id=12
How can I change it to this :
http://localhost/project/show_content/once/12

please guide me what I have to write in htaccess file and what should I do in my PHP codes?
Should I change my links url basically?
Thanks in advanced....

Reply With Quote
  #2  
Old October 21st, 2008, 09:20 AM
MatthewJ MatthewJ is offline
Contributing User
Click here for more information.
 
Join Date: May 2007
Location: Davenport, Iowa
Posts: 564 MatthewJ User rank is Private First Class (20 - 50 Reputation Level)MatthewJ User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Week 21 h 23 m 45 sec
Reputation Power: 3
Check this out

http://www.addedbytes.com/apache/mod_rewrite-cheat-sheet/

Reply With Quote
  #3  
Old October 21st, 2008, 09:30 AM
DavidMR's Avatar
DavidMR DavidMR is offline
Contributing User
Codewalkers Beginner (1000 - 1499 posts)
 
Join Date: Apr 2007
Location: Galway
Posts: 1,025 DavidMR User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 Weeks 5 Days 12 h 53 m 12 sec
Reputation Power: 4
Quote:
Originally Posted by mojtaba_g79
Hello;
I programmed a system. I want to turn it to SEO but don't know what to do?
for example one of my url is :
http://localhost/project/?act=show_content&show_type=once&id=12
How can I change it to this :
http://localhost/project/show_content/once/12

please guide me what I have to write in htaccess file and what should I do in my PHP codes?
Should I change my links url basically?
Thanks in advanced....


if you had a page like:
http://localhost/project/yourpage.php?act=show_content&show_type=once&id=12

you could use:
Code:
Options +FollowSymLinks
RewriteEngine on
RewriteRule yourpage/(.*)/(.*)/(.*)/(.*)/(.*)/(.*)/$ /project/yourpage.php?$1=$2&$3=$4&$5=$6


to rewrite this to friendly:

http://localhost/yourpage/act/show_content/show_type/once/id/12/
__________________
When I die, I want to go peacefully like my Grandfather did, in his sleep -- not screaming, like the passengers in his car.

Reply With Quote
  #4  
Old October 21st, 2008, 07:31 PM
wilorichie wilorichie is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Brisbane
Posts: 324 wilorichie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 Days 15 h 29 m 24 sec
Reputation Power: 3
I did find a problem with this.

Using backslashes, the browser thinks the page is in all of those folders now. I don't use ./ when putting in images so it doesnt base everything from root.

Instead of / I ended up using - symbols as a way around this.
__________________
- Richie

Reply With Quote
  #5  
Old October 22nd, 2008, 12:26 AM
mojtaba_g79's Avatar
mojtaba_g79 mojtaba_g79 is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 63 mojtaba_g79 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 23 h 42 m 24 sec
Reputation Power: 3
Thanks friends.
But In my php code what should I do?
is it works automatically or I have to change my codes?


another question : Why I don't have reputation button!?

Reply With Quote
  #6  
Old October 26th, 2008, 09:31 PM
Andrew's Avatar
Andrew Andrew is offline
Moderator
Click here for more information
 
Join Date: Apr 2007
Location: United Kingdom
Posts: 1,947 Andrew User rank is Private First Class (20 - 50 Reputation Level)Andrew User rank is Private First Class (20 - 50 Reputation Level)  Folding Points: 2429 Folding Title: Novice Folder
Time spent in forums: 4 Days 6 h 10 m 55 sec
Reputation Power: 4
Once the .htaccess file (assuming you are using apache) is setup correctly your PHP code should not have to be changed. Just change how it prints out any links, in template files etc.
__________________
Ubuntu User #13389

Reply With Quote
  #7  
Old April 20th, 2009, 03:40 AM
gggg90 gggg90 is offline
Registered User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2009
Posts: 10 gggg90 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 2 m 51 sec
Reputation Power: 0
That's true, for SEO purposes, it's also important how your inner pages are linked together, .htaccess is for only for spiders

Reply With Quote
Reply

Viewing: Codewalkers ForumsGeneralGeneral Chat > All should I do for SEO


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




 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

Request Your Free Technology Downloads!
 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

Request Your Free Technology Downloads!
 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

Request Your Free Technology Downloads!
 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

Request Your Free Technology Downloads!
 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

Request Your Free Technology Downloads!
 

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




© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 2 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek