Jump to content

Recommended Posts

Posted

Hello.

 

I just reinstalled wordpress and noticed the following problem:

 

When my permalink is at default: http://localhost/wordpress/?p=123, I am able to view the site [http://localhost/wordpress/] and successfully click the tabs [about, author, etc' ...].

 

However, when I change the permalink to any other setting, I am still able to go into the main site [http://localhost/wordpress/], but the minute I click any tab, it comes back with an error:

 

Not Found

The requested URL /wordpress/about/ was not found on this server.

 

This is my .htaccess [which was created automatically by WordPress]:

 

 

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

# END WordPress

 

 

Any suggestions?

Posted

I need to double check this... I know .htaccess files are linux files, and won't work on Windows machines. I'm unsure, however, if running WAMP will enable those .htaccess files to work. I'll need to look at this later today when I have the time.

Posted

I don't recall but .htaccess has never worked for me on my WAMP probably because of the path issue that you find being different from a www site. However, I haven't had the need to use WAMP in over 2 years and it's also an outdated version.

Posted

I played around with Wordpress on a local WAMP-based install, and it appears that .htaccess files don't work at all. I'm not sure if there is a way to get them to work... that would require some Google research.

 

Personally, I would leave this functionality alone for now, and test on a live, hosted website later. Your code shouldn't have any permalink/404 problems once it is online on a Linux based server.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...