/    Sign up×
Community /Pin to ProfileBookmark

Hey

I am on a Shared Hosting and my host does not have “URL Rewriting” enabled.

Is there anyway I can enable it for my site? How?

Thanx

to post a comment
PHP

2 Comments(s)

Copy linkTweet thisAlerts:
@jim_kellerSep 09.2008 — most likely, your host will have to enable Apache's mod_rewrite. If you're running on Windows, you may be out of luck, although there are alternatives for IIS as well.

You can try to enable mod_rewrite yourself by following these steps:

  • 1. create a file called .htaccess (note the dot at the beginning) on your webserver, and put the following in it:


  • RewriteEngine On

    RewriteRule ^rewritetest/?$ http://www.google.com

    then trying going to www.yoursite.com/rewritetest

    if it redirects you to google, then mod_rewrite is enabled and you can start adding custom rules.
    Copy linkTweet thisAlerts:
    @phantom007authorSep 10.2008 — That helped.

    Thanx
    ×

    Success!

    Help @phantom007 spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 5.19,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @AriseFacilitySolutions09,
    tipped: article
    amount: 1000 SATS,

    tipper: @Yussuf4331,
    tipped: article
    amount: 1000 SATS,

    tipper: @darkwebsites540,
    tipped: article
    amount: 10 SATS,
    )...