Current location: Hot Scripts Forums » Other Discussions » Web Servers » can someone help me figure out why this isn't working?


can someone help me figure out why this isn't working?

Reply
  #11 (permalink)  
Old 04-02-10, 12:57 AM
Dave6187 Dave6187 is offline
Newbie Coder
 
Join Date: Mar 2010
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
I really can't get this to work, although I'm learning a heck of a lot about mod_rewrite in the process

this is where i'm at right now....

This line i THINK is meant to keep the listed files from being rewritten, basically rewriting them to themselves, and if effective, stop doing anything. This line does NOT work in .htaccess, but I do have a line that does work..
RewriteRule ^/(pics/.*|css/.*|robots.txt|favicon.ico|apple-touch-icon.png)$ /$1 [L]

this line is supposed to (i think) rewrite anytime someone tries to go to the nonexistant directories /account/, /admin/, or /tips/, load the .php file. this one actually works in .htaccess IIRC
RewriteRule ^/(account|admin|tips)/.*$ /$1.php [L]

This one, I have no clue what it's supposed to do, because it doesn't seem complete to me, and it just gives me w/ a 500 error... and anything else i've tried, will redirect me to forums.php, but the page doesn't recieve any info about the script i'm trying to request (such as create.phtml, which is declared within a page in a separate directory, that forums.php includes.
RewriteRule ^/.* /forums.php [L]

any ideas?
Reply With Quote
  #12 (permalink)  
Old 04-02-10, 06:30 AM
wirehopper's Avatar
wirehopper wirehopper is offline
-
 
Join Date: Feb 2006
Posts: 2,515
Thanks: 20
Thanked 109 Times in 106 Posts
^/(pics/.*|css/.*|robots.txt|favicon.ico|apple-touch-icon.png)$ /$1 [L]

Try removing the first slash?
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Make Rewrite Modul Working in Windows, cause .htaccess ist not working specialex Web Servers 5 04-09-08 11:07 AM
PHP include not working in echo statement mike_jandreau PHP 6 04-03-07 05:02 AM
calendar working until months changed bitesize JavaScript 1 01-13-04 01:50 PM


All times are GMT -5. The time now is 01:30 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.