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:
You eat, breathe and sleep innovation. Build your mobile intelligence with BlackBerry® experts this July. Register Today!
  #1  
Old January 28th, 2007, 11:32 AM
Frazz Frazz is offline
The Frazzman
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Melbourne, Victoria, Australia
Posts: 126 Frazz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 54 m 58 sec
Reputation Power: 2
.htaccess redirects.

Hey guys + gals,

Im at a loss for what to put in my .htaccess file. What I want to do is have the address bar display something like address bar to display www.domain.net/pages/news/

but have the actual file that is being loaded to be www.domain.net/index.php?page=news

I have seen this done before, but cant remember how. Any help would be appreciated.

Frazz.

Reply With Quote
  #2  
Old January 28th, 2007, 12:49 PM
tkarkkainen's Avatar
tkarkkainen tkarkkainen is offline
Moderator
Click here for more information
 
Join Date: Apr 2007
Location: Finland
Posts: 2,320 tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)  Folding Points: 10700 Folding Title: Novice Folder
Time spent in forums: 6 Days 8 h 45 m 33 sec
Reputation Power: 4
RE: .htaccess redirects.

The key word is mod_rewrite. Use search to find pervious threads, I believe there was a thread that taught very basic things about it.

Reply With Quote
  #3  
Old January 30th, 2007, 08:59 AM
Frazz Frazz is offline
The Frazzman
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Melbourne, Victoria, Australia
Posts: 126 Frazz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 54 m 58 sec
Reputation Power: 2
RE: .htaccess redirects.

thankyou very much for your reply. I managed to figure it out. For any one else that needs help with this the .htaccess i used was:

Code:
RewriteEngine on
RewriteRule ^page/(.+)/(.+)/$ page.php?page=$1&function=$2 


Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesServer Administration > .htaccess redirects.


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 2 hosted by Hostway