TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 06-30-2009, 05:55 PM   #1 (permalink)
The Contributor
 
quantumkangaroo's Avatar
 
Join Date: Feb 2008
Location: Pretoria, South Africa
Posts: 42
Thanks: 1
quantumkangaroo is an unknown quantity at this point
Default mod_rewrite help sigh

I wrote an htaccess file to convert dynamically created url's, making them seo friendly, here is my htaccess file;

Code:
Options +FollowSymLinks
RewriteEngine On
 
##Content Application
RewriteRule (.+?)\.html			index.php?app=$1
RewriteRule (.+?)/([\w]+)\.html		index.php?app=$1&page=$2
The url I am trying to access is http://mydomain.com/content/javascript-security.html

Which is suppose to access index.php with the following variables, app=content&page=javascript-security, mod_rewrite is loaded in apache but it tries to access the file javascript-security.html whenever I access the link, any help would be appreciated.
__________________
virtueCart v1.0.5 developed by WebDevSA

Send a message via MSN to quantumkangaroo Send a message via Skype™ to quantumkangaroo
quantumkangaroo is offline  
Reply With Quote
Old 07-01-2009, 04:44 AM   #2 (permalink)
The Visitor
 
interactivedia's Avatar
 
Join Date: Jul 2009
Location: London
Posts: 3
Thanks: 0
interactivedia is on a distinguished road
Default

did you try reversing the order of the last two lines?
__________________
Web Design - Web Development - Web Consulting
Send a message via MSN to interactivedia Send a message via Yahoo to interactivedia Send a message via Skype™ to interactivedia
interactivedia is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 03:44 PM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design