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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T17:34:09+00:00 2026-05-21T17:34:09+00:00

My htaccess code is RewriteEngine on Options +FollowSymlinks -MultiViews # URL REWRITE RewriteRule ^domain-name/?$

  • 0

My htaccess code is

RewriteEngine on
Options +FollowSymlinks -MultiViews

# URL REWRITE
RewriteRule ^domain-name/?$ domain.php [L]
RewriteRule ^domain-name/registration/?$ domain-registration.php [L]
RewriteRule ^domain-name/price/?$ domain-price.php [L]
RewriteRule ^domain-name/security/?$ domain-security.php [L]
RewriteRule ^domain-name/features/?$ domain-features.php [L]
RewriteRule ^domain-name/faq/?$ domain-faq.php [L]
RewriteRule ^domain-name/provider/?$ domain-why-choose-us.php [L]
RewriteRule ^domain-name/free/?$ domain-free.php [L]
RewriteRule ^domain-name/transfer/?$ domain-transfer.php [L]

# 301
RewriteCond %{HTTP_HOST} ^www\.domain\.com$ [NC]
RewriteRule ^(.*)$ http://domain.com/$1 [R=301,L]

My question is, If i enter http://domain.com/domain-name/free
this is working fine. But

http://www.domain.com/domain-name/free
is goes to my original php file (free.php)

How to solve this?


Problem Solved My correct code is bellow

RewriteEngine on
Options +FollowSymlinks -MultiViews

# 301
RewriteCond %{HTTP_HOST} ^www\.globaliway\.com$ [NC]
RewriteRule ^(.*)$ http://globaliway.com/$1 [R=301,L]

# URL REWRITE
RewriteRule ^domain-name/?$ domain.php [L]
RewriteRule ^domain-name/registration/?$ domain-registration.php [L]
RewriteRule ^domain-name/price/?$ domain-price.php [L]
  • 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-21T17:34:10+00:00Added an answer on May 21, 2026 at 5:34 pm

    I have modified your .htaccess file to fix few things, please copy/paste from here INCLUDING the option line Options +FollowSymlinks -MultiViews

    RewriteEngine on
    Options +FollowSymlinks -MultiViews
    
    # URL REWRITE
    RewriteEngine  on
    RewriteRule ^domain-name/?$ /domain.php [L,NC]
    RewriteRule ^domain-name/registration/?$ /domain-registration.php [L,NC]
    RewriteRule ^domain-name/price/?$ /domain-price.php [L,NC]
    RewriteRule ^domain-name/security/?$ /domain-security.php [L,NC]
    
    # 301
    RewriteCond %{HTTP_HOST} ^www\.domain\.com$ [NC]
    RewriteRule ^(.*)$ http://domain.com/$1 [R=301,L]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have follwing code in .htaccess file Options +FollowSymLinks RewriteEngine on RewriteRule tricks tricks.php?show=all
I have this code in my .htaccess: Options +FollowSymLinks RewriteEngine On RewriteBase / RewriteRule
My .htaccess file has the following code: RewriteEngine on RewriteRule ^/?(.*)$ index.php?domain=$1 [L] I'm
I have the following .htaccess file Options +FollowSymLinks RewriteEngine on RewriteRule (.*)-pid-(.*)\.html$ product.php?n=$1&pid=$2 and
i have used the following code in .htaccess Options +FollowSymlinks RewriteEngine On RewriteBase /
I have this htaccess code: RewriteEngine on RewriteBase /xm/ RewriteCond %{REQUEST_URI} !^/index.php$ RewriteRule ^([a-z0-9]*)\.php$
My htaccess have this code # # Apache/PHP settings: # Options -Indexes Options +FollowSymLinks
I have this .htaccess code: Options +FollowSymLinks RewriteEngine On RewriteCond %{SCRIPT_FILENAME} !-d RewriteCond %{SCRIPT_FILENAME}
I have a .htaccess for url rewriting that looks like this: Options +FollowSymlinks RewriteEngine
i have the following .htaccess file for me web Options +FollowSymLinks RewriteEngine on RewriteRule

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.