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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T16:16:50+00:00 2026-05-26T16:16:50+00:00

Making .htaccess (mod_rewrite) work has been very difficult I already have this script for

  • 0

Making .htaccess (mod_rewrite) work has been very difficult
I already have this script for friendly url in my .htaccess file
and that works perfect

Options +FollowSymLinks
RewriteEngine On
RewriteRule ^article/(.*)/(.*)$ news_id.php?newsid=$1

But now I want to hide my file extension in the main navigation…
..so mypage.com/business.php will become mypage.com/Business

I was told to add RewriteRule ^business$ business.php [L]

…but it doesn´t cut it and Google has blacklisted me for searching

Could it be I have to add something to the button in my html/php file?
…this is the button
<li class="nav-business"><a href="business.php"></a></li>

I think the php-file doesn´t connect to my .htaccess but that can´t be because
this first Rewrite rule works

Any suggestions?

  • 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-26T16:16:51+00:00Added an answer on May 26, 2026 at 4:16 pm

    You might want to try something like this.To remove the .php extension from a PHP file for example yoursite.com/wallpaper.php to yoursite.com/wallpaper you have to add the following code inside the .htaccess file:

    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^([^\.]+)$ $1.php [NC,L]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am making use of Codeigniter and I currently have this URL format setup:
I am making a .htaccess file with various mod_rewrite rules. At the moment, one
I have this .htaccess RewriteRules, that doesn't work. RewriteRule ^(.+)\/(.+)\/$ /index.php?pg=$1&act=$2 What this code
I have been trying to do simple maping with RewriteMap directive in my htaccess,
this is yet another .htaccess question. And I already did my literature review. Would
I have this rule in my .htaccess: RewriteRule ^build_system/([^/]+)/([^/]+)/([^/]+)/?$ /po_systems/build_system.php?business_id=$1&system_id=$2&quantity=$3 Which works great for
In my application's .htaccess file I have the following: Options -Indexes RewriteEngine on RewriteCond
I need some help with .htaccess . I've been using URL rewrites, but not
I am trying to change my url type with .htaccess but I have a
I'm making a redirect script for my site, I use htaccess to rewrite the

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.