TalkPHP

TalkPHP (http://www.talkphp.com/forums.php)
-   General (http://www.talkphp.com/general/)
-   -   mod_rewrite help sigh (http://www.talkphp.com/general/4653-mod_rewrite-help-sigh.html)

quantumkangaroo 06-30-2009 05:55 PM

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.

interactivedia 07-01-2009 04:44 AM

did you try reversing the order of the last two lines?


All times are GMT. The time now is 04:13 PM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0