Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other HTACCESS configure Reply To: HTACCESS configure

#183156
Anonymous
Inactive

This isn’t working. I tried this code but it didnt work either.

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^([a-zA-Z0-9_-]+)$ index.php?id=$1
RewriteRule ^([a-zA-Z0-9_-]+)/$ index.php?id=$1
</IfModule>
<code></code>

I have my htaccess file in the plublic_html directory, and my parked domain filesystem, where i want to change the url. Done i try linking the index.php file to its actual location?
like so.

&lt;IfModule mod_rewrite.c&gt;
RewriteEngine On
RewriteRule ^([a-zA-Z0-9_-]+)$ mywebsite.com/page/index.php?id=$1
RewriteRule ^([a-zA-Z0-9_-]+)/$ mywebsite.com/page/index.php?id=$1
&lt;/IfModule&gt;
<code></code>

That also didn’t work. I don’t understand what htaccess is meant for.