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

The Archive Base Latest Questions

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

Need help with .htaccess I have website on my localhost with this .htaccess RewriteEngine

  • 0

Need help with .htaccess
I have website on my localhost with this .htaccess

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

Now i want to move the site to subdomain.domain.com

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ http://subdomain.domain.com/index.php/$1 [L]

I chaged the url but this doesn’n work maybe because this is subdomain i don’t know

hosting details:

#   Subdomain Name              Path [?]    
1   subdomain.domain.com    /home/www/subdomain.domain.com

my urls are like this

http://website/index.php/contact

with this htaccess i can use

http://website/contact

When i moved the site to the subdomain i can use http://subdomain.website/index.php/contact but when try http://subdomain.website/contact gives me error

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.
  • 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:23:34+00:00Added an answer on May 23, 2026 at 8:23 am

    Try with this one, it should work for all domains localhost as well as server.

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

    Make sure “rewrite_engine = on” on server.

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

Sidebar

Related Questions

i need some help in this htaccess code RewriteRule ^([0-9a-z\-\_]+)?$ /index.php?url=$1 [L,QSA,NC] This code
I have the following htaccess file: RewriteEngine On RewriteRule ^([^/]*)$ /bio.php?bio=$1 [L] I need
Currently I have a url like this http://<client_name>.website.com/index.php?function_name&cat=32 I want to set things up
RewriteEngine On RewriteBase / RewriteRule ^sample-([a-z][a-z]).php /state.php?m=$1 RewriteRule ^sample-([a-z^-]+).php /city.php?m=$1 I have two regular
I have the following htaccess. Options +FollowSymlinks RewriteEngine on RewriteBase / RewriteCond %{HTTP_HOST} !^(www|m)\.DOMAIN\.com$
This is beyond my level and I need some help. In the htaccess make
I have an htaccess file which begins with the regular stuff: RewriteEngine on RewriteBase
Need help with technical-designing of a website. I have a main page with a
I need some help regarding .htaccess rewrite rule. One of my page have combination
in my website I have some pages structured in this way: www.mysite.com/x/y.php?query=z I wrote

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.