Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Feb 2006
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation .htaccess - Mod Rewrite Problem

    Hi Everyone,

    I am having a problem with mod_rewrite in my website. Please help me out on this.

    The objective of the script is to have a custom URL from a dynamic URL:
    Dynamic URL:
    http://www.abc.com/subfolder/product...&catparentname=
    Custom URL:
    http://www.abc.com/subfolder/order/order%20zelli%20exotic%20shoes.htm

    I am implementing the following code with htaccess:

    Options +FollowSymLinks
    RewriteEngine on
    Rewritecond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule order/order%20zelli%20exotic%20shoes.htm$ product-list.php?list=2&catname=Shoes&catparentname=
    But the page is not loading. Where am I going wrong?

    Any help on this matter will be highly appreciated.

    Thanks in advance,

    Pasha Sanyal
    Always blame on me..

  • #2
    Regular Coder
    Join Date
    Oct 2004
    Posts
    330
    Thanks
    0
    Thanked 13 Times in 13 Posts
    Are you getting a 404 error when you visit /subfolder/order/order%20zelli%20exotic%20shoes.htm?
    Is the mod_rewrite in /subfolder/.htaccess?

    Try
    Code:
    Options +FollowSymLinks
    
    RewriteEngine On
    
    RewriteRule ^order/order\ zelli\ exotic\ shoes\.htm$ ./product-list.php?list=2&catname=Shoes&catparentname= [QSA,L]


  •  

    Posting Permissions

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