www.webdeveloper.com
Results 1 to 4 of 4

Thread: change url in .htaccess

Hybrid View

  1. #1
    Join Date
    Mar 2012
    Posts
    39

    change url in .htaccess

    Hi everyone!

    I am a newbie with url rewritting in .htaccess.

    I have an online store in prestashop. I want to change the url www.myshop/module/stblog/something.html to www.myshop/blog/something.html. I mean, to change /module/stblog/ to /blog/.

    I do not know how to do it. Please help!!!


    Thank you very much!

  2. #2
    Join Date
    Feb 2014
    Location
    Viet Nam
    Posts
    33
    Please put this in your .htaccess

    RewriteEngine on

    RewriteRule ^blog/something.html$ module/stblog/something.html [R=301,L]

  3. #3
    Join Date
    May 2014
    Posts
    2
    Hi,
    You can use this code , only put it in your .htaccess if you want redirect a folder
    RewriteEngine on
    RewriteRule ^blog/?$ /module/stblog/?something.html [R,L]

  4. #4
    Join Date
    Sep 2014
    Posts
    59
    Here's a .htaccess file I use that should work:

    RewriteEngine On
    RewriteRule ^([a-zA-Z0-9\-.]*)$ /?url=$1 [L]

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles