Note that there are some explanatory texts on larger screens.

plurals
  1. POurl to new format
    primarykey
    data
    text
    <p>Given below is my .htaccess file. It is not working on localhost apache (www is root directory on C:/apache/www) "url" is directory and I want output like this</p> <p><a href="http://localhost/url/index.php?username=shah" rel="nofollow">http://localhost/url/index.php?username=shah</a> to <a href="http://localhost/url/shah" rel="nofollow">http://localhost/url/shah</a></p> <p>I change windows host file 127.0.0.1 localhost &amp; also enable mod_rewrite in httpd.conf file &amp; AllowOverride none to AllowOverride All &amp; root Directory to C:/apache/www</p> <pre><code>//==============================HTaccess==================================// Options: # -MultiViews: Turns off multiviews so it doesn't interfer with our rewrite rules # -Indexes: Stop directory listings # +FollowSymlinks: Let out rewrite rules work Options -MultiViews -Indexes +FollowSymlinks &lt;IfModule mod_security.c&gt; # Turn off mod_security filtering. # SecFilterEngine Off # The below probably isn't needed, but better safe than sorry. SecFilterScanPOST Off &lt;/IfModule&gt; ErrorDocument 404 /url/404.php &lt;IfModule mod_php5.c&gt; php_value register_globals 0 php_value magic_quotes_gpc 0 php_value session.auto_start 0 php_value safe_mode 0 &lt;/IfModule&gt; &lt;IfModule sapi_apache2.c&gt; php_value register_globals 0 php_value magic_quotes_gpc 0 php_value session.auto_start 0 php_value safe_mode 0 &lt;/IfModule&gt; &lt;IfModule mod_rewrite.c&gt; RewriteEngine On RewriteBase /url/ RewriteRule ^([a-zA-Z0-9_-]+)$ index.php?username=$1 RewriteRule ^([a-zA-Z0-9_-]+)/$ index.php?username=$1 #RewriteRule ^view-content/([^/]*)/([^/]*)\.html$ content.php?pageid=$1&amp;title=$2 [L] &lt;/IfModule&gt; &lt;IfModule mod_deflate.c&gt; AddOutputFilterByType DEFLATE application/x-javascript text/css text/html text/xml &lt;/IfModule&gt; //==============================HTaccess==================================// </code></pre> <p>Please tell me what to do?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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