Jump to content

Recommended Posts

Posted

My old html website just has pages not more than twenty

I like to add redirect link in htaccess file instead of using a pw module

I found that there are many lines of config related to mod_rewrite rules

Just for example

Redirect 301 /about-us.html /about/about-us

It could redirect, but it will attach original page at the end

something like that
http://my.domaion.com/about/about-us/?it=about-us.html

 

 

 

Posted

You'd be better off using Jumplinks as it is, as @eelkenet says, less problematic. However, if you really want to use mod_rewrite:

# Place under RewriteEngine On

RewriteRule ^oldpage.html$ /new-location/? [R=302,L]

To make permanent, switch out 302 for 301.

  • Like 2

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...