|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
pagination with URI rewrite
I'm using the PHP code for pagination that I found herein the codes section and it works really well.
I have a question if someone wouldn't mind explaining this to me? I'd like to make the URIs appear static, even though they're dynamic. The page I'm working with is index.php and it would be the index.php in every folder throughout my site I'd like to do this with. I would like it to go from: http://www.mydomain.com/index.php?page=1 to this: http://www.mydomain.com/index1.php Is this possible to do using mod_rewrite? I've done a bunch of reading on it and everywhere I've read it says you can accomplish URI rewriting by using it in the ForceType or in .htacess but the thing is that's *ALL* they say. They don't give one example of what the code should look like. Can someone please post an example so I'd at least know what the code is supposed to look like? I've been at this for 3 or four days now and didn't want to ask for help, unless I really needed to. Well ... I really need to. I'm on a UNIX server, that has PHPSUexc installed so it forces mod_rewrite to act as a CGI Vs as an apache module. |
|
#2
|
|||
|
|||
|
RE: pagination with URI rewrite
-----Moved By Postal Cow-----
|
|
#3
|
|||
|
|||
|
RE: pagination with URI rewrite
Here is a good place to start
http://modrewrite.com/ |
|
#4
|
|||
|
|||
|
RE: pagination with URI rewrite
Why was my post moved to this forum?
The question I'm asking involves pages that are in PHP and don't have anything to do with server administration. |
|
#5
|
|||
|
|||
|
RE: pagination with URI rewrite
Those links are fine for someone who's been doing PHP for a while. They don't help much for someone who's new to PHP and are completely overwhelming.
I've ONLY been doing PHP for 2 months now. I've been able to learn enough to be functional, and that's about it. I'm sorry if my question has annoyed you. |
|
#6
|
|||
|
|||
|
RE: pagination with URI rewrite
I moved it because mod_rewrite has nothing to do with PHP. That has to do with Apache.
As for if your post annoyed me. No, what gave you that impression? I moved it so that you can get the best help. |
|
#7
|
|||
|
|||
|
RE: pagination with URI rewrite
I thought my question had annoyed you because you moved the post to another forum and didn't say why.
But, now I see. I saw other mod rewrite questions in the PHP forum, but nothing pertaining to what I asked, that's why I thought posting in the PHP forum was correct because my pages are PHP. There's another forum for PHP code questions, and the people there are very rude. I posted once and was litterally called an idiot because I didn't know how to do what it was I was asking. At least here, everyone has been helpful. BlindEddie is probably one of the nicest ones here. |
|
#8
|
|||
|
|||
|
RE: pagination with URI rewrite
Hi Diva,
Thanks for the compliment. Anyway, I have no experience with mod rewrites, but I did find an article that might help clarify things. http://www.zend.com/zend/trick/tricks-apr-2003-urls.php there are user comments at the bottom of the pages that talk about how the approach in the article is like mod rewrite and they even provide some examples. Sorry I can't be of more help on this. you should read the article and see if that way might be a solution for you....or check the user comments on mod-rewrite, I noticed there were some links to other sources of information. Let me know how it goes. |
|
#9
|
|||
|
|||
|
RE: pagination with URI rewrite
Thanks for the reply Eddie. I'll look into it.
BTW ... all the codes that you've helped me with so far have worked out great! I know there's some simple stuff I that I don't know yet, but there's also hard stuff that I figured out all on my own. In fact, I'm thinking about writing a tutorial to donate here that explains how to set up a web based panel based on user levels, and controlled by MySQL. For example, make a table with the usernames & passwords and assign a numeric level to each user, with each level incrementing by +1 Then using PHP you can specify who has access to what on a page based on their level. All of the data on a page can all be in one page, but users who are not allowed to see it, won't see it, even though it's there. I wrote it myself within 3 days of learning PHP. I guess my problem is I'm overthinking the simple stuff, else I'd have it by now. Thanks again for all of your help Eddie. - Daniella |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Server Administration > pagination with URI rewrite |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|