i have html page created htaccess.
like this.
options +followsymlinks rewriteengine on rewriterule ^([^/]*)/(.*\.html) process/?category=$1&link=$2 [l] it's working fine.
it redirects url
www.site.com/software/page.html to
www.site.com/process/index.php?category=software&link=page.html i want show 404 error if url has more 2 slashes.
for example
www.site.com/software/page.html/page.html or www.site.com/software/software/page.html should show 404 error instead of redirected this.
www.site.com/process/index.php?category=software&link=page.html/page.html currently doing php want in .htaccess give 404 error on first request.
please see , suggest way this.
thanks
this code should run :
rewriteengine on rewritecond %{request_filename} !-d rewritecond %{request_filename} !-f rewriterule ^[^/]*/[^/]*/ dhddhdhdhdhdh [l] rewriterule ^([^/]*)/(.*\.html) process/?category=$1&link=$2 [l]
Comments
Post a Comment