Results 1 to 2 of 2
  1. #1
    Join Date
    May 20th, 2007
    .htaccess question
    I have some minor issue with htaccess codding. One of mode rewires probably conflicts with other rules but I cannot find out where :-(. Any help would be appreciated.

    RewriteEngine On
    #Conflict/not working code: 
    RewriteRule ^/p/c/?([a-zA-Z0-9]+)?$ /p/login/ccc.php?var=$1 [L,QSA]
    #working fine
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^([a-zA-Z0-9\-_/\.]+)/info/?([a-zA-Z_\-]+)?(/|/*)?$ /p/my_test.php?var=$1&mode=$2 [L,QSA]
    #working fine
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !^/p/*
    RewriteCond %{REQUEST_URI} !^/p/.*
    RewriteRule ^([a-zA-Z0-9\-_/\.]+)$ /p/my_test.php?var=$1 [L,QSA]

  2. #2
    Join Date
    November 7th, 2012
    You have probably solved the problem by now but:

    I think the use of the ? is a bit weird in this whole example
    Also you should include a 'rewritebase /' on top.

    If you still have the problem past an exampel url which doesn't work.

  3. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. .htaccess question
    By Convergence in forum Programming / Datafeeds / Tools
    Replies: 8
    Last Post: April 2nd, 2009, 07:53 PM
  2. 301 redirect using htaccess question
    By ~Michelle in forum Midnight Cafe'
    Replies: 5
    Last Post: February 26th, 2006, 08:16 PM
  3. .htaccess question
    By Wayder in forum Programming / Datafeeds / Tools
    Replies: 4
    Last Post: December 20th, 2005, 03:24 PM
  4. mod_rewrite/.htaccess question
    By dak142 in forum Midnight Cafe'
    Replies: 6
    Last Post: July 19th, 2004, 02:19 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts