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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:47:37+00:00 2026-05-23T08:47:37+00:00

I have this htaccess setup on my clients site, they use godaddy RewriteEngine On

  • 0

I have this htaccess setup on my clients site, they use godaddy

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ $1.php [L,QSA]

it worked fine on my MAMP but does not seem to work on the server

they have setup a subdomain like demo.example.com and the htaccess exists in the demo folder but I get 404 trying to get to page like demo.example.com/test but demo.example.com/test.php works fine so this tells me the htaccess is not work. does anyone know what I need to do to make this work ?

  • 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-23T08:47:38+00:00Added an answer on May 23, 2026 at 8:47 am

    Try:

    1) Add this line into your .htaccess: Options +FollowSymlinks

    2) Add leading slash before $1, e.g. RewriteRule ^(.*)$ /$1.php [L,QSA]

    P.S. There are some “rumours” that GoDaddy may not pick up changes in .htaccess file straight away.

    I would also suggest to define custom 404 error handler (simple PHP script) that may help with debugging this (put this line into your .htaccess):

    ErrorDocument 404 /404.php

    404.php (as simple as this)

    <?php
    Echo "404\n";
    phpinfo(INFO_VARIABLES);
    

    The details there may help identify the issue.

    UPDATE:

    We have a domain name & hosting that we do not use which is about to expire. So I have logged in and tested these rules myself. Got it working straight away. Here is the setup I have:

    • Apache/1.3.33
    • Hosting Configuration: 2.1
    • PHP 5.x (did not bothered to check exact version)
    • Data Center: US Regional

    .htaccess was already present and had only 1 line 9possibly left over from the site that was there originally):

    addhandler x-httpd-php5 .phtml
    

    These lines were added to .htaccess:

    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME}\.php -f
    RewriteRule ^(.*)$ /$1.php [L,QSA]
    

    I have created simple php file to check if it works. Called it echo.php. Then I have tried these URLs:

    • http://www.example.com/abcd — saw error page (as expected)
    • http://www.example.com/echo — saw my page — echo.php (as expected)

    The full physical path to the echo.php is: /home/content/b/u/y/buyxxxxxxx/html/echo.php; ftp/website root is /home/content/b/u/y/buyxxxxxxx/html/

    Try this simple setup. DO not do anything complex until you solve this issue.

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

Sidebar

Related Questions

I have this htaccess rule to redirect my page to data_parser.php RewriteEngine On RewriteRule
I currently have a .htaccess file set up with this rule: RewriteRule ^([a-zA-Z0-9_-]+)$ user\.php?user=$1
I have this code in my .htaccess: Options +FollowSymLinks RewriteEngine On RewriteBase / RewriteRule
in .htaccess I have something like this: RewriteCond %{REQUEST_URI} (\/out\/pictures\/) RewriteCond %{REQUEST_FILENAME} !-f RewriteCond
I have successfully setup htaccess to do this: domain.com/ad.php?ad_id=bmw_m3_2498224 INTO: domain.com/ads/bmw_m3_2498224 However, I have
Our current htaccess setup correctly converts urls like this: site.com/page.php?sid=Friend to site.com/Friend However, due
I have this setup in my htdocs: htdocs htdocs/somedir htdocs/somedir/process.php htdocs/somedir/.htaccess This is the
I have setup .htaccess to redirect me.example.com to example.com/fun/index.php. This index.php has a session.
Ok, so I have this .htaccess file that contains this <IfModule mod_rewrite.c> RewriteEngine On
I have this in my .htaccess: RewriteRule ^account /?i=a [L] RewriteRule ^account/banners /?i=a&p=b [L]

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.