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

  • Home
  • SEARCH
  • 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 8062779
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T10:47:13+00:00 2026-06-05T10:47:13+00:00

I am working on a wordpress blog, with the default .htaccess settings: <IfModule mod_rewrite.c>

  • 0

I am working on a wordpress blog, with the default .htaccess settings:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

In my wordpress blog, I have created a page called “mypage”. Using my rewrite settings, it is shown in the address bar as http://www.mysite.com/mypage.

I am using a custom page template and am processing some things, which include the use of GET variables. For instance:

if (isset($_GET='word')) { echo $_GET['word]; }

So, http://www.mysite.com/mypage?word=dog will display “dog”.

The problem I am having is rewriting the URL so that it can look like: http://www.mysite.com/mypage/dog, still being able to access “dog” as the GET variable.

I am not too good with mod_rewrite rules to begin with, but working from within a wordpress installation is throwing me an extra curveball.

Does anyone know what I need to add to my .htaccess to achieve this?

Thank you!

  • 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-05T10:47:15+00:00Added an answer on June 5, 2026 at 10:47 am

    Try the following:

    RewriteRule ^mypage/([^/])/?$ mypage?word=$1 [L,QSA]
    

    The L flag instructs .htaccess to stop processing rules, and QSA appends the query string since you might have other GET parameters on the end of the URL.

    Mod_Rewrite Documentation

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

Sidebar

Related Questions

Below is the .htaccess file I am working on for a wordpress blog/ I
I'm working on a Wordpress blog. I'm embedding a stylesheet as follows: <link rel=stylesheet
I am currently working on a Wordpress blog installation. Problem i am facing is
I'm working on a blog migration from a custom built blog to Wordpress. One
I'm working on a wordpress site, with a blog post that ends like: http://www.blog.com/?p=2
I am working on my Wordpress blog and its required to get the title
I am currently working on my Wordpress blog, which is hosted on a VPS.NET
I created a wordpress blog. Its is working fine in local. When i copied
I'm working on my first WordPress project. It won't be a blog but a
I'm working on a plugin for a Wordpress blog that posts a link 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.