Welcome to WebmasterWorld Guest from 54.196.144.100

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

setting variables and having clean urls in htaccess

setting variables and having clean urls in htaccess

     

the little mermaid

3:59 am on Oct 2, 2009 (gmt 0)

5+ Year Member



Hi to all

Its my first time here. I needed some htaccess help. Actually I have an already made project at the workplace where there are certain htaccess rules made up. So I just wanted a couple of resources where I can learn about htaccess. There is a $req variable used which I think is a standard variable. Also I want to know how variables are passed in htaccess.

Also there are clean urls. For eg. I have made a pagination for certain 100 records and the url looks like http://example.com/$page=page1.php?var=1 which I would want like this:
http://example.com/1 i.e. just the page number and nothing else in the url.

Please if anyone can point me in the right direction.
Thanks

jd01

5:29 am on Oct 2, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi the little mermaid,

Welcome to WebmasterWorld!

So I just wanted a couple of resources where I can learn about htaccess.

If you only want a couple I can't help you too much, because there's a bunch in the Library and the Charter. (The links are right below Apache Web Server at the top of the pages in this forum.)

The resources include: Changing Dynamic URLs to Static URLs [webmasterworld.com], which happens to be what you are asking how to do. :)