Results 1 to 2 of 2

Thread: mod_rewrite Issue

  1. #1
    Join Date
    Jun 2011

    Question mod_rewrite Issue

    Was hoping someone might be able to help me with a rewrite issue I'm having.

    I would like for my clients to control the URL of any page they create in our custom CMS.

    Let's say my client creates three pages in our CMS and enters the following values for the FURL field:

    1. "services/design.php"
    2. "products/software/1/"
    3. "news"

    I would like for the following URLs to work based on those FURL field entries:

    1. http://www.domain.com/services/design.php
    2. http://www.domain.com/products/software/1/
    3. http://www.domain.com/news

    Basically, I'd like for them to control whatever the URL is after "http://www.domain.com/". Is this possible? I've tried various methods and all have failed.

    The dynamic link is: http://www.domain.com/content.php?furl=page-link-here

    Hope someone might be able to help me out. Thanks!

  2. #2
    Join Date
    Jun 2011
    A user on a different forum helped me solve my issue. I need the following lines to make it work:

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^/?(.*) content.php?furl=$1 [L]

    In my previous attempts, I didn't have the two RewriteCond lines.

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