My pages don't end in any extension, is this ok?

Discussion in 'Site & Server Administration' started by Your Lover For Ever, Sep 29, 2009.

  1. dren

    dren Active Member

    Messages:
    86
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #21
    I don't know. :eek:

    Try
     http://httpd.apache.org/docs/2.0/misc/rewriteguide.html 
    Code (markup):
    Also this might help:
     http://www.addedbytes.com/cheat-sheets/download/mod_rewrite-cheat-sheet-v1.png 
    Code (markup):
     
    dren, Oct 4, 2009 IP
  2. Your Lover For Ever

    Your Lover For Ever Peon

    Messages:
    172
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #22
    http://httpd.apache.org/docs/2.0/misc/rewriteguide.html
    Code (markup):
    Wow!
    It was really complicated for Just rewriting one rule! :(

    Can I ask anybody's help ??
     
    Your Lover For Ever, Oct 4, 2009 IP
  3. Azkaban

    Azkaban Peon

    Messages:
    537
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #23
    Try this.. (The very last line is my addition)
    The "index.php" coming in the links must be suppressed by specifying it in the pattern.

    Options +FollowSymLinks
    RewriteEngine On
    #    leave just a normal / (slash) if the script is installed at root level otherwise enter it's folder here ex: /wscript (! no trailing slash)
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond $1 !^(index\.php|install|scripts|fonts|uploads|robots\.txt|sitemap\.xml|favicon\.ico)
    
    #    if wscript is installed in a subfolder, add it before index.php ex: RewriteRule ^(.*)$ /wscript/index.php?/$1 [L] otherwise leave it as is
    RewriteRule ^(.*)$ /index.php?/$1 [L]
    RewriteRule ^wallpapers/show/([0-9]+)\.html$ index.php?/wallpapers/show/$1 [L]
    
    PHP:
     
    Azkaban, Oct 8, 2009 IP