Note that there are some explanatory texts on larger screens.

plurals
  1. PO.htaccess help needed, not sure if .htaccess is being processed at all :/
    text
    copied!<p>-------------Fixed (see bottom)------------</p> <p>I have been working at this for a day now but with no luck. I am trying to get a 4 char request (url-shortener) to forward to a particular page but I just can't get it to work. This is what I have in my .htaccess</p> <pre><code>RewriteEngine on RewriteRule ^([a-z0-9]{4})$ view.php?short=$1 </code></pre> <p>Here is what I have in the vhost file</p> <pre><code>&lt;VirtualHost *:80&gt; DocumentRoot "bla bla/jewd.co/public_html" ErrorLog "bla bla bla" CustomLog "bla bla bla" common ServerName jewd.lo ServerAlias jewd.lo &lt;Directory "bla blajewd.co/public_html"&gt; Options +FollowSymLinks -Indexes -MultiViews AllowOverride All Order allow,deny Allow from all &lt;/Directory&gt; &lt;/VirtualHost&gt; </code></pre> <p></p> <p>I've tried all sorts of variations but no luck. Obviously I do not have the word "bla" in any file I just wanted to shorten the lines. Any help greatly appreciated as I'm quite a newbie when it comes to rewrite.</p> <p>One more point, the local host is jewd.lo and it will be going live to jewd.co just to clear up any confusion :) Thanks Jonn</p> <p>----------Edit-----------</p> <p>I have since confirmed that mod-rewrite is indeed working and I have also tried with RewriteBase / but no luck.</p> <p>----------- Fixed --------------</p> <p>Ok, I am not sure which bit of tinkering has fixed the problem but somewhere along the way the page has changed from The </p> <p>requested URL /1f8r was not found on this server.</p> <p>to</p> <p>The requested URL /view.php was not found on this server.</p> <p>Day 1 week 1 I suppose, always create a page that you are forwarding to before you need it.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload