Jump to content

how to make friendly url

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
2 replies to this topic

#1
azoqup

azoqup

    Newbie

  • Members
  • PipPip
  • 11 posts
Hi,
I want to make my php based script's url search engin friendly,as i know
nothing about .htaccess, can anyone one hints me about the code in the .htaccess

http://127.0.0.1/one...&script=comment

ignore 127.0.0.1/one/

the actual url is index?default&base=one&script=comment where "one" is the folder name and comment
is the script on that folder.default is fixed all time. so those url parse in a functin and base and script variable i caught via request in a file which inlude in the very begining of the execution.

So suppose i want visitor to type
http://127.0.0.1/one/comment
but it's actual url is
http://127.0.0.1/one...&script=comment

and another one like

http://127.0.0.1/one/profile

but it's actual url is

http://127.0.0.1/one...&script=profile

can anyone hinst me about the htaccess code for this along with the regular expression

thanx

Edited by azoqup, 11 April 2010 - 09:02 AM.


#2
webcodez

webcodez

    Programmer

  • Members
  • PipPipPipPip
  • 149 posts
Good question, I'd be interested into that as well.

As for now I only got my urls converted to e.g. webname.com/index.php/variable1/variable2 or webname.com/index.php?variable.

#3
azoqup

azoqup

    Newbie

  • Members
  • PipPip
  • 11 posts
anybody......
anyhints