Results 1 to 5 of 5

Thread: mod_rewrite and .htaccess

  1. #1
    Junior Member
    Join Date
    May 2012
    Posts
    2

    Default mod_rewrite and .htaccess

    I have:

    RewriteEngine on
    RewriteCond %{REQUEST_URI} !^/(skins|stylesheets|images|config|awstats|awstatsic ons|captcha)/
    RewriteCond %{REQUEST_URI} !^/(redirect|texvc|index).php
    RewriteCond %{REQUEST_URI} !^/favicon.ico
    RewriteCond %{REQUEST_URI} !^/info.txt
    RewriteCond %{REQUEST_URI} !^/robots.txt
    RewriteRule ^/(.+)$ /index.php?title=$1 [L,QSA]

    in public_html/.htaccess - a bare modification of the same file from an apache install. For some reason it is not working and when I try to make use of the rewrite rules all I get is a 404 from any attempt at a page. Is mod_rewrite not available on cpanel78 or have I missed a requirement somewhere ? (note that the rules are bog-standard for a MediaWiki install)

    I'm puzzled because I see reports in the forums of mod_rewrite working on other cpanelXX hosts.

  2. #2
    Administrator AndrewT's Avatar
    Join Date
    Mar 2004
    Location
    Tulsa, OK
    Posts
    3,641

    Default

    mod_rewrite is available and functional on all servers. If you would like us to take a look at your particular configuration we'll need you to go ahead and submit a ticket via our portal.

  3. #3
    Junior Member
    Join Date
    May 2012
    Posts
    1

    Default

    In my attempt to wrap my head around this, I ended up with the following two links I was mucking about with before growing tired:

    Guide: http://www.mediawiki.org/wiki/Manual:Short_URL/Apache
    Automated Tool: http://shorturls.redwerks.org/

    This may or may not be helpful. It does seem the method you posted has fallen out of favor in the last several years (???). As for your actual question, I still haven't a clue. Of course, I am not overly familiar with any of this and am becoming incoherent. Sleep now.

  4. #4
    Junior Member
    Join Date
    May 2012
    Posts
    2

    Default

    Updated the .htaccess to match the style they've changed to (using the !-f and !-d bits instead of doing a RewriteCond matching a regex against the pathname - still not working.

  5. #5
    Senior Member
    Join Date
    Mar 2004
    Posts
    329

    Default

    I guess RewriteLog would help you to resolve problem but I am not sure if you can use that on Dathorn server.

    I found it to be tremendous help on our development local server.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •