www.webdeveloper.com
Results 1 to 1 of 1

Thread: htaccess RewriteRule Vanity URL

  1. #1
    Join Date
    Oct 2008
    Posts
    3

    htaccess RewriteRule Vanity URL

    Hey, I'm having a bit of trouble with this vanity url. I have a setup like:

    url.com/service/dir/dir/dir/page_20398394

    I basically want it to ignore the filler directories, go to page:

    url.com/services/?n=20398394

    My original rule was:
    Code:
    RewriteRule ^services/page_(.*)/$ /services/?n=$1 [L]
    Which I modified to:
    Code:
    RewriteRule ^services/(+[A-Za-z0-9]+)/page_(.*)/$ /services/?n=$1 [L]
    after I decided to go with the vanity directory system.

    Any help would be appreciated,
    thanks for the reply.
    Last edited by emachine; 11-16-2009 at 02:53 PM. Reason: incomplete

Thread Information

Users Browsing this Thread

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

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
  •  
HTML5 Development Center



Recent Articles