Need SEO friendly URLs for PHP dynamic pages

Discussion in 'PHP' started by theronn, Jul 1, 2008.

  1. #1
    My Business Networking site has dynamic pages with the "?" and some other funny looking URLs. Can someone tell me what is the easiest way to change dynamic pages so I will have SEO friendly URLs? What's the process and how long should it take to do it?

    Thanks in advance for your help.
     
    theronn, Jul 1, 2008 IP
  2. RyanDoubleyou

    RyanDoubleyou Peon

    Messages:
    86
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Is your website hosted on an Apache server? What does the URL look like?
     
    RyanDoubleyou, Jul 1, 2008 IP
  3. theronn

    theronn Peon

    Messages:
    44
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
  4. RyanDoubleyou

    RyanDoubleyou Peon

    Messages:
    86
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #4
    What do you wish for the URLs to look like?
     
    RyanDoubleyou, Jul 1, 2008 IP
  5. AliasXNeo

    AliasXNeo Banned

    Messages:
    151
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    You can always use a .htaccess file to completely change your file structure.

    For instance you can turn:

    www.mysite.com/download/
    Code (markup):
    Into this:

    www.mysite.com/index.php?do=download
    Code (markup):
    That way on the back-end your still using variables like that but on the front-end the user/bot doesn't seen any of that.
     
    AliasXNeo, Jul 1, 2008 IP
  6. RyanDoubleyou

    RyanDoubleyou Peon

    Messages:
    86
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I will tell you the code for the .htaccess file, if you tell me what you want the URL to look like.
     
    RyanDoubleyou, Jul 1, 2008 IP
  7. theronn

    theronn Peon

    Messages:
    44
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    theronn, Jul 2, 2008 IP
  8. califmike2003

    califmike2003 Peon

    Messages:
    314
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #8
    I have the same problems as this guy, i have dynamic urls, i want seo friendly urls also, im willing to pay somebody to change the urls, if its reasonable cost, please pm me if your interested.
     
    califmike2003, Jul 3, 2008 IP
  9. imchandan

    imchandan Guest

    Messages:
    50
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #9
    solution 1) either use codeignitor framework.. it's very easy to learn and implement...
    2) use .htaccess to redirect....
    example :-
    what should be in ur .htaccess file :-
    Options +FollowSymlinks
    RewriteEngine On
    RewriteRule ^discussions/(.*)/pages/(.*)$ /softwares/discussion.php?file_name=$1&page=$2 [L]

    this is code for my site.. now what happens , whenever anyone types www.mysite.com/discussions/mobile/pages/2 then it redirects it silently to www.mysite.com/discussion.php?file_name=mobile&page=2 ... still in address bar of browser you see www.mysite.com/discussions/mobile/pages/2.....
    hope this helps... let me know if you want me to explain it further...
     
    imchandan, Jul 3, 2008 IP
  10. theronn

    theronn Peon

    Messages:
    44
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    imchandan, is this a complicate process to install? how long should it take to implement?
     
    theronn, Jul 4, 2008 IP
  11. imchandan

    imchandan Guest

    Messages:
    50
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #11
    hey,
    Codeignitor is really not complicated to install.. you can go to www.codeignitor.com and download the script.. they have video tutorial as well.... and if you have whole website made , then looks like it will difficult for you to change all URLs.... so better i suggest you that you should go for point no 2).... you can use .htaccess file for redirect.. look at the example which i have given... this is from my own site... let me know if i can help you further....
    you can also email me at my email address ...
    thanks ,
    Chandan
     
    imchandan, Jul 4, 2008 IP
  12. theronn

    theronn Peon

    Messages:
    44
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #12
    Thanks Chandan,

    I sent you an email (not pm)
     
    theronn, Jul 4, 2008 IP