title: .HTACCESS URL Rewriting - 404 Error in My URL
body: <p>I am trying for URL rewriting and using below mentioned code. But I am receiving 404 Error on my pages except one given below.</p>
  
  <pre><code>   Options +FollowSymLinks
     RewriteEngine on
  
     rewritecond %{http_host} ^phoolwala.net [nc]
     rewriterule ^(.*)$ http://www.phoolwala.net/$1 [r=301,nc]
     #RewriteRule ^index.php?$ /phoolwala.net/? [R=301] 
     RewriteRule ^index.php?$ /? [R=301] 
     RewriteCond %{REQUEST_FILENAME} !-f
     RewriteCond %{REQUEST_FILENAME} !-d
  
      #below line gives error in dhtml editor
      #RewriteRule ^(.*)\.html$ $1.php [nc]
  
      #RewriteRule ^(.*)/$             $1.php [L]
  
  
      RewriteRule ^register/$ register.php [L]
      RewriteRule ^register$ register.php [L]
  
  
      RewriteRule ^my-account/$ my-account.php [L]
      RewriteRule ^my-account$ my-account.php [L]
  
      RewriteRule ^track-order/$ track-order.php [L]
      RewriteRule ^track-order$ track-order.php [L]
  
      RewriteRule ^edit-profile/$ edit-profile.php [L]
      RewriteRule ^edit-profile$ edit-profile.php [L]
  
      RewriteRule ^testimonials/$ testimonials.php [L]
      RewriteRule ^testimonials$ testimonials.php [L]
  
      RewriteRule ^sitemap/$ sitemap.php [L]
      RewriteRule ^sitemap$ sitemap.php [L]
  
      RewriteRule ^login/$ login.php [L]
      RewriteRule ^login$ login.php [L]
  
      RewriteRule ^my-account/$ my-account.php [L]
      RewriteRule ^my-account$ my-account.php [L]
  
      RewriteRule ^edit-profile/$ edit-profile.php [L]
      RewriteRule ^edit-profile$ edit-profile.php [L]
  
      RewriteRule ^reminders/$ reminders.php [L]
      RewriteRule ^reminders$ reminders.php [L]
  
      RewriteRule ^view-my-orders/$ view-my-orders.php [L]
      RewriteRule ^view-my-orders$ view-my-orders.php [L]
  
      RewriteRule ^order-details/$ order-details.php [L]
      RewriteRule ^order-details$ order-details.php [L]
  
      RewriteRule ^contact-us/$ contact-us.php [L]
      RewriteRule ^contact-us$ contact-us.php [L]
  
      RewriteRule ^logout/$ logout.php [L]
      RewriteRule ^logout$ logout.php [L]
  
      RewriteRule ^cart/$ cart.php [L]
      RewriteRule ^cart$ cart.php [L]
  
  
       RewriteRule ^international-products/(.*)/(.*)/(.*)/ international-products.php?cid=$1&amp;id=$2&amp;pageno=$3 [L]
       RewriteRule ^international-products/(.*)/(.*)(.*)/ international-products.php?cid=$1&amp;id=$2&amp;pageno=$3 [L]
  
      RewriteRule ^products/(.*)/(.*)/ products.php?id=$1&amp;pageno=$2 [L]
      RewriteRule ^products/(.*)/(.*) products.php?id=$1&amp;pageno=$2 [L]
  
      RewriteRule ^price/(.*)/(.*)/(.*)/ productsprice.php?from=$1&amp;to=$2&amp;pageno=$3 [L]
      RewriteRule ^price/(.*)/(.*)(.*)/ productsprice.php?from=$1&amp;to=$2&amp;pageno=$3 [L]
  
      RewriteRule ^page/(.*)/(.*)/ page.php?alias=$1&amp;id=$2 [L]
      RewriteRule ^page/(.*)/(.*) page.php?alias=$1&amp;id=$2 [L]
  
      RewriteRule ^international-product/(.*)/(.*)/(.*)/ international-product-details.php?cid=$1&amp;cat=$2&amp;id=$3 [L]
      RewriteRule ^international-product/(.*)/(.*)/(.*) international-product-details.php?cid=$1&amp;cat=$2&amp;id=$3 [L]
  
      RewriteRule ^product/(.*)/(.*)/(.*)/ product-details.php?cat=$1&amp;alias=$2&amp;id=$3 [L]
      RewriteRule ^product/(.*)/(.*)/(.*) product-details.php?cat=$1&amp;alias=$2&amp;id=$3 [L]
  
      RewriteRule ^search/(.*)/(.*)/(.*)/ productsearch.php?keyword=$1&amp;cat=$2&amp;pageno=$3 [L]
      RewriteRule ^search/(.*)/(.*)(.*)/ productsearch.php?keyword=$1&amp;cat=$2&amp;pageno=$3 [L]
  
      RewriteRule ^international/(.*)/ international.php?cid=$1 [L]
      RewriteRule ^international/(.*) international.php?cid=$1 [L]
  </code></pre>
  
  <p>But except below code nothing is working please help me to update the code.</p>
  
  <pre><code>  RewriteRule ^product/(.*)/(.*)/(.*)/ product-details.php?cat=$1&amp;alias=$2&amp;id=$3 [L]
    RewriteRule ^product/(.*)/(.*)/(.*) product-details.php?cat=$1&amp;alias=$2&amp;id=$3 [L]
  </code></pre>