I can’t seem to get this extension working properly on EE2.
I installed the extension and it doesn’t work quite right.
I’m using WAMP on my local machine, and I can navigate to http://mysite.local. However, I cannot view any other pages.
I get this error if I go to a new page. http://mysite.local/news_articles/view/top_story_article_3 You don’t have permission to access /news_articles/view/top_story_article_3 on this server.
NSM Generator Settings .htaccess path: /.htaccess
That’s the only path I can use where I don’t get a file not found error. The .htaccess file is in the root of my site.
General Configuration URL to the root directory of your site: http://mysite.local/
Any idea why I can’t get to any of my internal pages? Seems like I’m missing something simple.
Is it actually writing anything to the .htaccess? Have you tried using a full path like “C:\wamp\www\mysite.htaccess”?
I used the full path, and now it is writing to the .htaccess file properly, but it is still not working.
same error about
Forbidden You don’t have permission to access /test on this server.
Did you enable mod_rewrite? To turn it on click the WAMP icon in the system tray go to Apache > Apache Modules and make sure rewrite_module is checked
Is your site outside the C:/wamp/www folder? If it is you may have to add something to your vhost config
Example vhost
<VirtualHost *:80> <Directory “C:\path\to\site”> AllowOverride all Order allow,deny Allow from all </Directory> DocumentRoot “C:\path\to\site” ServerName test.local </VirtualHost>
Did you enable mod_rewrite? To turn it on click the WAMP icon in the system tray go to Apache > Apache Modules and make sure rewrite_module is checked Is your site outside the C:/wamp/www folder? If it is you may have to add something to your vhost config Example vhost<VirtualHost *:80> <Directory “C:\path\to\site”> AllowOverride all Order allow,deny Allow from all </Directory> DocumentRoot “C:\path\to\site” ServerName test.local </VirtualHost>
Yes, I have rewrite_module enabled.
My vhosts is configured like this.
<VirtualHost 127.0.0.1> DocumentRoot “C:/Work/Workspace/SLO/WEB” ServerName slo.local <Directory “C:/Work/Workspace/SLO/WEB”> Options +Indexes +FollowSymLinks Allow from all AllowOverride All </Directory> </VirtualHost>
I am having the same problem getting the extension to work when running EE on WAMP.
If I access http://localhost/index.php/about/contact I view the content, however, if I access http://localhost/about/contact I get NOT FOUND.
I specified the path the .htaccess file as just “.htaccess” as the file is in the root of the site.
The file is being written to by the extension as this is what is in the file:
Options +FollowSymlinks
ErrorDocument 404 /index.php/about/404
<FilesMatch “(.jpe?g|gif|png|bmp|css|js|flv)$”> ErrorDocument 404 “File Not Found” </FilesMatch>
<IfModule mod_rewrite.c> RewriteRule “(^|/).” - [F] </IfModule>
<IfModule mod_rewrite.c> RewriteCond %{HTTPS} !=on RewriteCond %{HTTP_HOST} ^www.(.+)$ [NC] RewriteRule ^(.*)$ http://%1/$1 [R=301,L] </IfModule>
RewriteCond %{QUERY_STRING} !^(ACT=.)$ [NC] RewriteCond %{REQUEST_URI} !(.[a-zA-Z0-9]{1,5})$ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} ^/(about|global_embeds|news|search|members|P[0-9]{2,8}) [NC] RewriteRule (.) /index.php/$1 [L]
Any pointers would be much appreciated.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.