I am having issues with .htaccess rewrite and a access url. The site is on a LAMP server and the domain name is not pointing to it yet. That means the domain name is in the form:
rather than:
If I disable the htaccess file by renaming it and making the index.php my index file in general settings then it works (with the domain name).
http://servername.com/~username/index.php/thePage/
My redirect code is the “standard”:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /# Removes index.php from ExpressionEngine URLs
RewriteCond %{THE_REQUEST} ^GET.*index\.php [NC]
RewriteCond %{REQUEST_URI} !/renamedsystenfolder/.* [NC]
RewriteRule (.*?)index\.php/*(.*) /$1$2 [R=301,NE,L]# Directs all EE web requests through the site index file
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]
</IfModule>
Since the pages serve when I disable the htaccess file and name my index file I assume it is the rewrite.
Can someone help with a rewrite for access url?
EE version is 2.3.1 - I will upgrade after I get it working correctly.