Grow your CSS skills. Land your dream job.

Removing “?” from search

  • # September 24, 2012 at 7:44 pm

    Hey I have an html website on my computer and I want to make files for each search. i dont have .htaccess. Is there another way I can do it???

    Please HELP

    example: search”syberfx”
    search url:http://example.com/?=syberfx
    I cant make a file with a “?”. Thats my problem..

    PLEASE HELP!!
    Thanks

    # September 24, 2012 at 7:56 pm

    Not to my knowledge. Why would you want to make a file for each search?

    # September 24, 2012 at 11:46 pm

    I cant make a file with a “?”.

    the question mark is not part of a file name. it marks the beginning of the [query string](http://en.wikipedia.org/wiki/Query_string).

    .htaccess would be the only way to do this transparently. How are you processing your search?

    *also*:

    …I have an html website on my computer

    - meaning, on your local computer (*not* online)?
    - meaning, HTML-only (no CGI or server-side scripting)?

    # December 9, 2012 at 12:20 pm

    Yes. It’s an HTML website on my computer(not online)!

    # December 9, 2012 at 12:31 pm

    and…? Did you read our answers above?

    If you want your own search functionality, you’re stuck using a server-side language.

    If you want to rewrite URLs, you’re stuck using .htaccess.

    # December 9, 2012 at 4:53 pm

    Can I use .htaccess on a html website on my computer?

    # December 9, 2012 at 4:55 pm

    Yes but the point is, is that you should use a server side language for this. Otherwise I would just use Google Site Search.

    How can you predict what others will search?

    # December 9, 2012 at 9:18 pm

    > Can I use .htaccess on a html website on my computer?

    I would have assumed you could, but you said earlier that you couldn’t.

    > Otherwise I would just use Google Site Search.

    I second this.

    # December 9, 2012 at 9:27 pm

    @traq

    Sometimes hosting providers limit what you can do. Some won’t even allow PHP. I’m assuming that is why he can’t. Unless he’s naming the .htaccess file to something like `stuff.htaccess` instead of just `.htaccess`.

    # December 10, 2012 at 12:05 am

    True.

    @davidkrasniy, a few posts back you said the site is on your own computer (not online).

    Is it staying there, or will it eventually be published on the web? If so, do you know what features your host supports?

Viewing 10 posts - 1 through 10 (of 10 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".