Server Administration
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesServer Administration

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:
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  
Old January 16th, 2004, 12:58 AM
diva diva is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 77 diva User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
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.

Reply With Quote
  #2  
Old January 16th, 2004, 01:43 AM
postalcow postalcow is offline
Codewalkers Beginner (1000 - 1499 posts)
 
Join Date: Apr 2007
Location: Ford CIty, PA USA
Posts: 1,267 postalcow User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
Send a message via Yahoo to postalcow
RE: pagination with URI rewrite

-----Moved By Postal Cow-----

Reply With Quote
  #3  
Old January 16th, 2004, 01:45 AM
postalcow postalcow is offline
Codewalkers Beginner (1000 - 1499 posts)
 
Join Date: Apr 2007
Location: Ford CIty, PA USA
Posts: 1,267 postalcow User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
Send a message via Yahoo to postalcow
RE: pagination with URI rewrite

Here is a good place to start

http://modrewrite.com/

Reply With Quote
  #4  
Old January 16th, 2004, 01:47 AM
diva diva is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 77 diva User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
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. :

Reply With Quote
  #5  
Old January 16th, 2004, 01:52 AM
diva diva is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 77 diva User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
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.

Reply With Quote
  #6  
Old January 16th, 2004, 02:03 AM
postalcow postalcow is offline
Codewalkers Beginner (1000 - 1499 posts)
 
Join Date: Apr 2007
Location: Ford CIty, PA USA
Posts: 1,267 postalcow User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
Send a message via Yahoo to postalcow
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.

Reply With Quote
  #7  
Old January 16th, 2004, 02:09 AM
diva diva is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 77 diva User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
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.

Reply With Quote
  #8  
Old January 16th, 2004, 02:40 AM
Blindeddie Blindeddie is offline
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: NJ - USA
Posts: 2,152 Blindeddie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 4
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.

Reply With Quote
  #9  
Old January 16th, 2004, 02:49 AM
diva diva is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 77 diva User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
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

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesServer Administration > pagination with URI rewrite


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


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





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway