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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T15:53:13+00:00 2026-05-20T15:53:13+00:00

I want to create functionality similar to the site downforeveryoneorjustme.com. They use a pretty

  • 0

I want to create functionality similar to the site downforeveryoneorjustme.com. They use a pretty URL to take in the URL of any given site. I sure they use htaccess to do this, however the method i’m using is encountering problems.

This is my .htaccess file that I’m using to send the site URL to a file.php:

RewriteEngine on

RewriteCond %{SCRIPT_FILENAME} !-f  
RewriteCond %{SCRIPT_FILENAME} !-d 

RewriteRule ^(.+)?$ /file.php?var=$1

However when I type in something like
mysite.com/http://google.com the variable it sends the file is http:/google.com (missing a slash). I can’t figure out why this is occurring.

Also, when I type in something like mysite.com/existingfolder, where existingfolder is a folder on my site, it always works incorrectly. The variable it passes to the file is missing.html instead of existingfolder. In this case, the file doesn’t display images. The image can’t be found, and i’m assuming its because it’s searching for the image in an incorrect folder on the site. That it might think it’s in existingfolder and not in the normal folder it should be in.

Does anyone know why I’m getting these problems? I’m knew to htaccess, and I’m assuming it has something to do with that.

Thanks for any help.

  • 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-20T15:53:13+00:00Added an answer on May 20, 2026 at 3:53 pm

    I sure they use htaccess to do this

    I’m not. I’m not even sure they’re using Apache.

    mod_rewrite is not always the answer to all URL-processing problems. It’s certainly prone to some of the quirks of path-based URL handling, including the removal of double-slashes.

    I suggest reading the Apache-specific REQUEST_URI variable from your script, rather than relying on rewrites to get a parameter. This will give you the path requested by the browser without any processing.

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

Sidebar

Related Questions

I want to create a functionality similar to what www.redfin.com has on their search
I want to create a drawer functionality, similar to the Facebook app, with two
I want to create a simple login functionality in WP7 app using remote MySQL
I want functionality similar to the below: typedef int A; typedef int B; struct
In Django you can use the exclude to create SQL similar to not equal
If you were creating a site, with similar functionality to youtube (this isn't another
I want to implement functionality similar to Fiddler. I have tried 2 solutions: HttpListener
Basically, I want this sort of functionality but less complicated: http://www.blueacorn.com/team/ I have a
We use Sharepoint 2010 in our enterprise. And I want to create a way
I am having trouble getting the functionality we want in our Create View in

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.