Mamp pro Permalink Settings

Hi,
I have changed the Permalink Settings for wordpress to post name. When I clicked Pro Header, or Template, Global Blocks etc , I got the error message “Not Found
The requested URL /math/pro/ was not found on this server.”
After I changed back the Permalink to Plain, everything work fine. I am using 2.1.0 Beta 1

thanks

Hi,

Thanks for writing in!

Please login to FTP then rename your .htaccess file to .htaccess.bak.

Then go to Settings > Permalinks and click on Save Changes.

If you have a cache plugin installed, please clear its cache and your browser cache then check again.

Thanks

hi,
I have done whatever you say but still the same. This is local wordpress site which I am using MAMP Pro to host, the local url is http://localhost/math/pro/#/headers. This is not remote site.

Hi,

I tried in my localhost with the beta version but can’t replicate the issue you are having.

Can you try deactivating all plugins.

Is there a way you can upload your site to a server so we can check why it’s not working.

Thanks

Hi,
I have deactivate all the plugins but still the same. Only headers/content/footers/templates/global blocks/theme options give the error message “Not Found
The requested URL /math/pro/ was not found on this server.” validation and settings is ok.

Hello @luckyse7en,

Thanks for updating the thread.

I tried to change the permalinks settings in my MAMP (it’s not the pro version) and header builder and other tools are working fine. In your case I think .htaccess file is not writable. Please open your .htaccess file and add following code and see how it goes.

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

I am sharing few resources that you can take a look on editing .htaccess file locally.


http://doctype.com/htaccess-file-locally-mamp

Let us know how it goes.

Thanks.

this is the content of my .htaccess file:

BEGIN WordPress

RewriteEngine On RewriteBase /math/ RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /math/index.php [L]

END WordPress

I have changed and restart MAMP. Then I change Permalink to plain, it works fine. After I changed back to postname, still the same error. My live server permalink is postname. If the local wordpress (on MAMP) the permalink is set to plain. When I add a few posts locally, then I upload to my live server, does it affect?

Hi there,

When you do a migration from local to live server, you will still need to reconfigure your permalink setting and flush it. Hence, having different permalink is just okay.

And why your htaccess is abovethe /math/ folder? It should be right in your Wordpress root installation. Example, it shouldn’t be like this

/public_html/.htaccess

but should be like this

/public_html/math/.htaccess

Then

RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

Thanks!

Hi,
I am using MAMP, my .htaccess is inside the folder C:\MAMP\htdocs\math. There is no public_html folder…

Hi there,

Yes, that’s correct, public_html is just a sample as root WWW folder.

And it should work, I tried it on my MAMP too. Unfortunately, we couldn’t offer support related to other software. You can also try XAMPP it works on my Mac too.

Thanks!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.