Wordpress friendly url redirects to wampserver localhost page
Posted by: berand (---.broadband.quicknet.se)
Date: February 24, 2017 09:37AM

I am not sure if this is a wordpress questions or a wamp question.

I have a wordpress site locally in wampserver. (http://localhost/mysite).
I select one of the alternatives for friendly urls in permalink in settings.
I go to one of the pages and click on the permalink for the page. localhost/mysite/mynewpage/
I don't get the real page, instead i get the wamp localhost file without css. What can be wrong???

In the apache_error I get the following error:
[Fri Feb 24 08:44:33.980397 2017] [core:alert] [pid 5608:tid 1108] [client ::1:52301] C:/wamp64/www/8sidor/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration, referer: [localhost]


I hope you can help me!!

(rewrite_module is selected)



Edited 1 time(s). Last edit at 02/24/2017 09:51AM by berand.

Options: ReplyQuote
Re: Wordpress friendly url redirects to wampserver localhost page
Posted by: Otomatic (Moderator)
Date: February 24, 2017 12:48PM

Hi,

> (http://localhost/mysite).
NO. You MUST use VirtualHost to have 'http://mysite/' see The need for Virtual Host

You must create a VirtualHost BEFORE installing any CMS or Web application, especially for Wordpress.

Please: READ (and answer) BEFORE YOU ASK A QUESTION

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote


Sorry, only registered users may post in this forum.