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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T13:42:38+00:00 2026-05-27T13:42:38+00:00

We have a new site ready to launch. all development has been done on

  • 0

We have a new site ready to launch. all development has been done on a separate subdomain (cli.company.com) and we’re using htaccess commands for clean urls, which is all working fine. The HTACCESS code is as follows:

RewriteEngine on

RewriteRule ^page/([^/\.]+)/?$ page.php?page=$1 [L]
RewriteRule ^([^/\.]+)/?/([^/\.]+)/?$ page.php?theme=$1&pg=$2 [L]

RewriteRule ^([^/\.]+)/?$ page.php?theme=$1&pg=$1 [L]
RewriteRule ^([^/\.]+)/?/$ page.php?theme=$1&pg=$1 [L]

So, all good there & works fine on the development site. The problem is we’re now ready to switch to the live domain, and the client has a current site and so we are moving the hosting at the same time. on our server, the domain is setup and all the files there ready to go. the temporary URL that cPanel gives us looks something like this: http://00.00.000.000/~cli/_clientsite.com/.

The homepage of the site comes up just fine in the final testing as it doesn’t rely on the url rewrite, but the interior pages are giving a 404 error, which i think is because of the rewrite rule not kicking in properly.

I only need this to work for the testing as we can’t afford this to go live and not work. Is there a way around this?

  • 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-27T13:42:39+00:00Added an answer on May 27, 2026 at 1:42 pm

    Before your RewriteCond lines, add a RewriteBase line like so:

    RewriteEngine on
    RewriteBase /~cli/
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME}\.php -f
    RewriteRule ^(.*)$ $1.php
    Options All -Indexes
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a sign up form that is displayed to all new site visitors.
I'm working on a new data type for an Umbraco site and have been
I have just finished my new portfolio site visible at http://www.pepkarsten.com/artdirection . It is
I'm running MOSS 2007 and have created a new site under an existing one
I have designed a new web site. I have hosted it online. I want
I have some code that creates a new site in SharePoint. Upon browsing to
I am building a new site, and I have a folder on desktop with
I'm trying to have a new layer appear above existing content on my site
I have the following code snippet: using (SPSite site = new SPSite(this.ListAddress)) { using
I'm new on both this site and ruby on rails! I have a common

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.