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 6551695
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T12:22:10+00:00 2026-05-25T12:22:10+00:00

I am new to drupal and how it’s functions work, but I am trying

  • 0

I am new to drupal and how it’s functions work, but I am trying to adjust the .htaccess file to adjust some old urls to create some better SEO friendly ones.

I know Drupal has a clean URL writter which is fine, but i’m trying to forward some old urls. Here is an example of the URL structure.

Current OLD url
http://www.example.com/own

Switch to the new URL
http://www.example.com/own-real-estate/own-123

So within my .htaccess file in the ROOT of the website (/html/)

<IfModule mod_rewrite.c>
  RewriteEngine on
  RewriteBase /

  #THIS
  RewriteRule ^/own-real-estate/own-123(.*)$ http://www.example.com/own [R=301,L]

  #OR THIS
  RewriteRule http://www.example.com/own-real-estate/own-123(.*)$ http://www.example.com/own [R=301,L]

</IfModule>

AddHandler php5-script .php

Or is there a CACHING problem that is causing problems? Any help would be appreciated.

  • 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-05-25T12:22:11+00:00Added an answer on May 25, 2026 at 12:22 pm

    I think you wrote your rule backwards

    RewriteRule ^/own http://www.example.com/own-real-estate/own-123 [R=301,L,NC]
    

    This guide will give you a quick primer on .htaccess url rewriting
    http://corz.org/serv/tricks/htaccess2.php

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

Sidebar

Related Questions

This may well be simple, but I'm new to Drupal. The organization I work
Having spent some time migrating old data into a new drupal site, my first
I'm new to Drupal and trying to create a book to be used for
I'm new to Drupal (v6) and PHP, and I'm trying to implement some content
I'm new to Drupal but thanks to our old friend O'Reilly I'm blazing through
When you create a new content type in Drupal using the Content Creation Kit,
I'm new at drupal. I created custom content type with CCK. Added some Phone,
I am new to drupal. I started ctreaing site but facing problem in how
I have a site new.mysite.com in Drupal. In the vhost file I have a
Disclaimer: I am new to django but have coded in Drupal I need to

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.