Home › Forums › Other › HTACCESS configure › Reply To: HTACCESS configure
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.
<IfModule mod_rewrite.c>
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
</IfModule>
<code></code>
That also didn’t work. I don’t understand what htaccess is meant for.