Jump to content

why URL rewrite not working ?


sphway

Recommended Posts

I'm trying rewirte the url from  search?tag=women+dress to tag/women+dress,but get 404 error.

Here is my RewriteRule in .htaccess File

     <IfModule mod_rewrite.c>

          RewriteEngine on

          RewriteRule tag/(.*)$  search?tag=$1

          ......

    </IfModule>

In httpd.conf File

      LoadModule rewrite_module modules/mod_rewrite.so

      .....

      <Directory />
          Options FollowSymLinks
          AllowOverride All
     </Directory>

     .....

    DocumentRoot "C:/xampp/htdocs"
   <Directory "C:/xampp/htdocs">

        Options Indexes FollowSymLinks Includes ExecCGI
        AllowOverride All
        Require all granted
    </Directory>

My OS is window with XAMPP for Windows 7.3.33 Apache 2.4.51, PHP 7.3.33,Prestashop version is 1.7.6.6

 

Any Help,Thanks!

Edited by sphway
add tags (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...