Results 1 to 2 of 2

Thread: formatting apache rewrite rule

  1. #1

    formatting apache rewrite rule

    Hello all,

    I have dynamic pages that look like this.

    /index.php?purl=text_variable_with_underscore_2355.html

    What would be the rewrite rule to get them to look like this.

    /text_variable_with_underscore_2355.html

    There is no other page besides index.php for this site.

    Thanks

  2. #2
    I think the following should work ...

    Code:
    RewriteEngine on
    RewriteBase /
    
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    
    RewriteRule ^(.*)$ index.php?purl=$1

Similar Threads

  1. I need some help with this rewrite rule
    By darthmalis in forum Search Engine Optimization and Marketing
    Replies: 0
    Last Post: 15 Jul 2007, 03:53 AM
  2. apache htaccess cheatsheet
    By apachedude in forum Web Hosting and Domain Names
    Replies: 0
    Last Post: 30 Mar 2007, 06:47 PM
  3. Dramatically Speed Up Sites with caching on Apache
    By apachedude in forum Web Hosting and Domain Names
    Replies: 0
    Last Post: 18 Jan 2007, 01:43 AM

Tags for this Thread

Posting Permissions

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