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 April 22nd, 2008, 04:10 AM
khan300470647 khan300470647 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2008
Location: India
Posts: 5 khan300470647 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 50 m 36 sec
Reputation Power: 0
MySpace
XHTMLMP - Mod_rewrite

PHP Code:
 Options +FollowSymLinks
RewriteEngine On
RewriteRule 
^my.html  myd/sid/web/index.php?action=gviewtpc&sid=&tid=31 


help this is not working
it doesnt require sessions

its not creating mysite.com/my.html

Reply With Quote
  #2  
Old April 22nd, 2008, 05:00 AM
jabba_29's Avatar
jabba_29 jabba_29 is offline
Back in HEL
Dev Shed God 8th Plane (8500 - 8999 posts)
 
Join Date: Feb 2002
Location: Finland
Posts: 8,571 jabba_29 User rank is General 8th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 8th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 8th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 8th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 8th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 8th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 8th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 8th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 8th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 8th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 8th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 8th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 8th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 8th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 8th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 8th Grade (Above 100000 Reputation Level)  Folding Points: 57777 Folding Title: Beginner FolderFolding Points: 57777 Folding Title: Beginner FolderFolding Points: 57777 Folding Title: Beginner Folder
Time spent in forums: 3 Months 3 Weeks 2 Days 9 h 29 m 36 sec
Reputation Power: 1494
Send a message via ICQ to jabba_29 Send a message via AIM to jabba_29 Send a message via MSN to jabba_29 Send a message via Yahoo to jabba_29 Send a message via Google Talk to jabba_29 Send a message via Skype to jabba_29
Facebook
What do you mean that it is not creating my.html??

You have to write the links themselves.

You visit the link: mysite.com/my.html and hopefully all the variables will be available to you are you have detailed in your rule.

Moving this to Apache as it is rewrite specific
__________________
Cheers,

Jamie


# skiFFie | Home of the 'accessibility module' for Drupal
# Jamie Burns [me] Accessibility Module [drupal]
# guidelines | search | wap resources | not getting help | fold to cure

# Any form of employment is strictly prohibited ......


__________________

Let the might of your compassion arise to bring a quick end
to the flowing stream of the blood and tears .....
Please hear my anguished words of truth.

__________________

Reply With Quote
  #3  
Old April 22nd, 2008, 07:04 AM
khan300470647 khan300470647 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2008
Location: India
Posts: 5 khan300470647 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 50 m 36 sec
Reputation Power: 0
MySpace
mysite dot com/myd/sidworld/web/index.php?action=gviewtpc&tid=31

tid = topic id


Options +FollowSymLinks
RewriteEngine On
RewriteRule ^([^/]*)/([^/]*)/([^/]*)\.html$ index.php?action=gviewtpc&tid=$1 [L]


can some 1 please help me

mysite dot com/myd/sidworld/web/index.php/action/gviewtpc/31

but the problem is its going to login page

this action doesnt require session its for guest users

Reply With Quote
  #4  
Old April 27th, 2008, 11:30 PM
Toxinhead's Avatar
Toxinhead Toxinhead is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2008
Posts: 147 Toxinhead User rank is Corporal (100 - 500 Reputation Level)Toxinhead User rank is Corporal (100 - 500 Reputation Level)Toxinhead User rank is Corporal (100 - 500 Reputation Level)Toxinhead User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 1 Day 17 h 34 m 28 sec
Reputation Power: 3
Send a message via MSN to Toxinhead
Quote:
RewriteRule ^([^/]*)/([^/]*)/([^/]*)\.html$ index.php?action=gviewtpc&tid=$1 [L]



I found that if you only use ([^/]*) in your re-URL like you did here:

Code:
RewriteRule ^([^/]*)/([^/]*)/([^/]*)\.html$


It Clashes with other URLS on your site like:

http://yoursite.com/beach/dead/cool.html

and therefore doesn't work and sends back a 500 or 404 error page!

What error are you getting when you go to http://yoursite.com/$tid/bla/bla.html?

Reply With Quote
  #5  
Old April 29th, 2008, 03:43 AM
khan300470647 khan300470647 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2008
Location: India
Posts: 5 khan300470647 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 50 m 36 sec
Reputation Power: 0
MySpace
Options +FollowSymLinks
RewriteEngine On
RewriteRule ^([^/]*)/([^/]*)/([^/]*)\.html$ index.php?action=gviewtpc&tid=$1 [L]


thanks for replying
i have added the above script to htaccess


127.0.0.1/myd/sidworld/web/gviewtpc/31

if i use this url
i get object not found Error 404


mysite url

127.0.0.1/myd/sidworld/web/index.php?action=gviewtpc&tid=31

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > XHTMLMP - Mod_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

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