Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

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 Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old May 3rd, 2008, 09:09 AM
vebtools vebtools is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2008
Posts: 7 vebtools User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 13 m 14 sec
Reputation Power: 0
PHP-General - Link changing

Hi

i need some help thats my web

Code:
http://smsxone.com/


i buy the script from some one

now i want to change its URL

my catagory shows URL like that

Code:
http://smsxone.com/user_sms.php?id=37


I want to change it .. like that

Code:
http://smsxone.com/funny_sms


would u like to teach me how can i do this plz

i personlu belive that it will be possible though .htaccess file but dont know how :-s

there is .htaccess file in the script which shows following text

Code:
AuthType Basic
AuthName "Restricted Area"
AuthUserFile "/home/smsxone/.htpasswds/public_html/include/passwd"


plz help me to make such kind of urls

thanks in advance

Reply With Quote
  #2  
Old May 3rd, 2008, 09:26 AM
lnxgeek lnxgeek is offline
I AM A GOLDEN GOD
Dev Shed God (5000 - 5499 posts)
 
Join Date: Apr 2003
Location: cannot find symbol: method showLocation()
Posts: 5,278 lnxgeek User rank is Colonel (50000 - 60000 Reputation Level)lnxgeek User rank is Colonel (50000 - 60000 Reputation Level)lnxgeek User rank is Colonel (50000 - 60000 Reputation Level)lnxgeek User rank is Colonel (50000 - 60000 Reputation Level)lnxgeek User rank is Colonel (50000 - 60000 Reputation Level)lnxgeek User rank is Colonel (50000 - 60000 Reputation Level)lnxgeek User rank is Colonel (50000 - 60000 Reputation Level)lnxgeek User rank is Colonel (50000 - 60000 Reputation Level)lnxgeek User rank is Colonel (50000 - 60000 Reputation Level)lnxgeek User rank is Colonel (50000 - 60000 Reputation Level)lnxgeek User rank is Colonel (50000 - 60000 Reputation Level)lnxgeek User rank is Colonel (50000 - 60000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 21 h 17 m 36 sec
Reputation Power: 564
This is an Apache question, only marginally related to PHP.

You'll need to add some rewrite rules to the .htaccess file, e.g.
Code:
<ifModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^funny_sms/?$  user_sms.php?id=37 [L]
</ifModule>


This will change any incoming requests for 'funny_sms' to user_sms.php?id=37. This can be done with any incoming request to create 'friendly URLS'.

Similarly, you can do
Code:
RewriteRule ^sms/funny/?$  user_sms.php?id=37 [L]


That might be more appropriate if you have several different categories of SMS messages you want to output; the logical thing to do is simply tack the category name to the end of the 'sms' request.

Please read the mod_rewrite thread in the Apache forum, post there if you have any questions. There are alot of good tutorials online as well. You'll also want to brush up on regular expressions as they play an essential role in getting rewrite rules to work.
__________________
BookMooch.com : Give books away. Get books you want.

Reply With Quote
  #3  
Old May 3rd, 2008, 09:32 AM
vebtools vebtools is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2008
Posts: 7 vebtools User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 13 m 14 sec
Reputation Power: 0
but i want to chang the whole webs catagories

there are more than 50 catagories

Reply With Quote
  #4  
Old May 3rd, 2008, 09:42 AM
lnxgeek lnxgeek is offline
I AM A GOLDEN GOD
Dev Shed God (5000 - 5499 posts)
 
Join Date: Apr 2003
Location: cannot find symbol: method showLocation()
Posts: 5,278 lnxgeek User rank is Colonel (50000 - 60000 Reputation Level)lnxgeek User rank is Colonel (50000 - 60000 Reputation Level)lnxgeek User rank is Colonel (50000 - 60000 Reputation Level)lnxgeek User rank is Colonel (50000 - 60000 Reputation Level)lnxgeek User rank is Colonel (50000 - 60000 Reputation Level)lnxgeek User rank is Colonel (50000 - 60000 Reputation Level)lnxgeek User rank is Colonel (50000 - 60000 Reputation Level)lnxgeek User rank is Colonel (50000 - 60000 Reputation Level)lnxgeek User rank is Colonel (50000 - 60000 Reputation Level)lnxgeek User rank is Colonel (50000 - 60000 Reputation Level)lnxgeek User rank is Colonel (50000 - 60000 Reputation Level)lnxgeek User rank is Colonel (50000 - 60000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 21 h 17 m 36 sec
Reputation Power: 564
You'll want to create a rewrite rule for each category.

Reply With Quote
  #5  
Old May 3rd, 2008, 09:50 AM
vebtools vebtools is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2008
Posts: 7 vebtools User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 13 m 14 sec
Reputation Power: 0
Aha thanks

let me try it

very very thanks

i hope it would be work

Reply With Quote
  #6  
Old May 4th, 2008, 02:00 AM
vebtools vebtools is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2008
Posts: 7 vebtools User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 13 m 14 sec
Reputation Power: 0

Reply With Quote
  #7  
Old May 4th, 2008, 02:30 AM
vebtools vebtools is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2008
Posts: 7 vebtools User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 13 m 14 sec
Reputation Power: 0
Thanks bRo fOr Ur helP....


I have Tried And Its Working Fine . . .

Code:
http://www.smsxone.com/free-sms/Funny-sms/



But There Are Some Problems Yet . . .


1) Its Not ShowinG In Categaries . . .

Just Redirect By Enter The URL NOt From category Navigation ...


2) When I Use paging I Comes back To The Origical Form

LIke This :

Code:
http://www.smsxone.com/user_sms.php?id=23&pg=2


sO whAt shUd i dO for thAt . . .
Comments on this post
Joseph Taylor disagrees: "FanX"?

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > PHP-General - Link changing


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

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

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





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