Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8010673
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T18:48:39+00:00 2026-06-04T18:48:39+00:00

What I need to do it rewrite a url from one thing to another

  • 0

What I need to do it rewrite a url from one thing to another eg:

http://www.domain.com/page_one/blah //to
http://www.domain.com/page_two/blah

I’ve tried a few script I’ve found around the internet but I’m terrible with .htaccess and can never understand or get it right.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T18:48:40+00:00Added an answer on June 4, 2026 at 6:48 pm

    If you want to change only this specific url, use this:

    RewriteEngine On
    RewriteRule ^page_one/blah?$ http://www.domain.com/page_two/bla [L]
    

    If you want to change the url for every file into the “page_one”-folder, this will help you:

    RewriteEngine On
    RewriteRule ^page_one/([^/]+)$ http://www.domain.com/page_two/$1 [L]
    

    The RewriteEngine On activates the RewriteEnigine, so that you are able to use RewriteRules.
    The ([^/]+) in the second solution means “every file, but no folders (the slash is excluded)”. This is stored in $1 and used to create the new url.

    Edit
    [L] stops the script from using the other rules (if you have some)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a URL like this http://www.mysite.com/one/two/nearly_anything#!0lJ_PghzRwHtOyL3BkSouCFVh61mV_I0ZUPSipZDKPFW9xc from which I need to get the
I'm trying to rewrite an url from: http://domain.com/aa/whatever/whatever.php to http://domain.com/whatever/whatever.php?language=aa However, depending on existing
I need rewrite this url http://adresa.com/article.php?act=view&id=1113 to http://adresa.com/view/1113 I make it with mod_rewrite in
I need to rewrite URLs from: www.example.com/John.Connor/my-first-post/42 to: www.example.com/post.php?postid=42&userid=19 Tables: USER: id, name, surname,
I need to use mod_rewrite to redirect http://www.site.com/new_cars/cars.php?make=brandname to have a friendlier url of
I need mod_rewrite functionality on an IIS .NET server. Is http://www.isapirewrite.com/ the best option?
I need to return a url from a rewrite rule which contains either a
I have the following page: www.domain.com/index.php?route=information/contact and I'd like to rewrite it so that
This is the rewrite rule that I am working with: RewriteRule (.*\.(jpe?g|gif|bmp|png))$ http://www.newurl.com/?image=$1 What
I have url rewrite rules which redirect www.domain2.com to a subfolder under the root

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.