SitePoint Sponsor

User Tag List

Results 1 to 9 of 9
  1. #1
    SitePoint Guru Richi's Avatar
    Join Date
    Jul 2001
    Location
    Hu,Bp.
    Posts
    842
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    what the wrong with this RewriteRule ?

    Hi ..

    what the wrong with this :

    Code:
    RewriteEngine On
    RewriteRule ^/arical/read/([0-9]+)$ /index.php/news/aticale/read/$1


    thx!

  2. #2
    pie??? PIE!!!! rsdl's Avatar
    Join Date
    May 2001
    Location
    Vancouver, BC Canada
    Posts
    502
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    that's saying that you should redirect /arical/read/20 to /index.php/news/articale/read/20

    i don't think that index.php/news/articale... is a valid path.

  3. #3
    Sidewalking anode's Avatar
    Join Date
    Mar 2001
    Location
    Philadelphia, US
    Posts
    2,205
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by rsdl
    i don't think that index.php/news/articale... is a valid path.
    It is sort of, in that Apache keeps everything in the PATH_INFO server variable. Take a look at aspen's search engine frinedly URL's article for more on that.
    TuitionFree a free library for the self-taught
    Anode Says... Blogging For Your Pleasure

  4. #4
    SitePoint Guru Richi's Avatar
    Join Date
    Jul 2001
    Location
    Hu,Bp.
    Posts
    842
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i had checked all .. and i didn`t find what the wrong !

    that's saying that you should redirect /arical/read/20 to /index.php/news/articale/read/20

    i don't think that index.php/news/articale... is a valid path.
    yes it`s ... i have this kind also ... from ezp32 !
    http://localhost/ez32/index.php/site...t/view/full/40

    and
    http://localhost/ez32/index.php/site...anguage/de-ger

  5. #5
    SitePoint Guru Richi's Avatar
    Join Date
    Jul 2001
    Location
    Hu,Bp.
    Posts
    842
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    <Directory C:\PHP\www\ez32>
    Options All MultiViews
    options AllowOverride All
    Order allow,deny
    Allow from all
    AcceptPathInfo On
    </Directory>
    
    #<FilesMatch "(index\.php|\.(gif|jpe?g|png))$">
    #order allow,deny
    #allow from all
    #</FilesMatch>
    DirectoryIndex home
    ForceType application/x-httpd-php
    DefaultType php
    
    RewriteEngine On
    RewriteRule !\.(gif|css|jpe?g|png|js|jar)$ index.php
    RewriteRule ^arical/read/([0-9]+)$ index.php/site/content/view/full/$1 [L]
    
    DirectoryIndex index.php
    any1 ?!

  6. #6
    Sidewalking anode's Avatar
    Join Date
    Mar 2001
    Location
    Philadelphia, US
    Posts
    2,205
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What does "not working" mean? What happens when you enter a arical/read/x URL?
    TuitionFree a free library for the self-taught
    Anode Says... Blogging For Your Pleasure

  7. #7
    SitePoint Guru Richi's Avatar
    Join Date
    Jul 2001
    Location
    Hu,Bp.
    Posts
    842
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i got error 403 !

    but now i had removed this line :
    RewriteRule !\.(gif|css|jpe?g|png|js|jar)$ index.php

    whay ?!

  8. #8
    SitePoint Guru Richi's Avatar
    Join Date
    Jul 2001
    Location
    Hu,Bp.
    Posts
    842
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    this gonna drive me crazy !now wan`t work any way :/

  9. #9
    SitePoint Guru Richi's Avatar
    Join Date
    Jul 2001
    Location
    Hu,Bp.
    Posts
    842
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ok .. found it ..


Bookmarks

Posting Permissions

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