Jump to content

.htaccess


dakat

Recommended Posts

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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...