www.webdeveloper.com
Results 1 to 4 of 4

Thread: RewriteEngine questions

  1. #1
    Join Date
    May 2004
    Location
    Minnesota
    Posts
    17

    RewriteEngine questions

    I know I am mucking about with deep server voodoo here but I cannot figure out how to make this work.

    I'm using ExpressionEngine, which generates URLS that look like this:

    http://www.domain.com/index_ee.php/w...he_entry_title

    What I want to do is have it look like this:

    www.domain.com/this_is_the_entry_title

    I have this in my .htaccess file, which doesn't work:

    RewriteEngine on
    RewriteRule ^domain\.com/(.*)$ domain\.com/index_ee\.php/weblog/$1

    Any Apache wizards out there?

    -g

  2. #2
    Join Date
    Nov 2003
    Location
    Jerryville, Tejas
    Posts
    11,715
    Have you tried

    RewriteRule ^/(.*)$ /index_ee\.php/weblog/$1

    ?

    That's just a WAG because I know something about REs but nothing about mod_rewrite. Have you looked at the Apache URL Rewriting Guide?

  3. #3
    Join Date
    May 2004
    Location
    Minnesota
    Posts
    17
    Just tried that and it didn't work. Dang. Got a 404.

    Thanks for trying, though.

    -g

  4. #4
    Join Date
    Nov 2003
    Location
    Jerryville, Tejas
    Posts
    11,715
    I think there are ways to turn on logging to see what the before/after look like and there are some flags you can put at the end of the rule or in preceding rewrite sections to radically effect the way the rule is applied.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles