Hi Everyone,
I have copied a .htaccess file from one website and I am trying to use the same htaccess file on a different website.
here is the copy of the htaccess file I have copied from one site to another...
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^(\d+)/([^/]+)/?$ index.php?uiid=$1&title=$2 [L]
</IfModule>
both websites have the same structure as
/domname.com/dir1/dir2/shopping-cart/index.php
The htaccess file successfully rewrites the above url into the below url
/domname.com/dir0/dir1/shopping-cart/302/this-is-a-second-test-item
But for some reason, the htaccess file doesnt work & I get the error
The requested URL /domname.com/dir1/dir2/shopping-cart/index.php was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Can someone point me in the right direction with a fix to why this would not be working,
But, it works perfectly on the website I copied it from...