I had wordpress site with permalink based on post name.
I had to recreate the entire server. The tables data is same.
Now, the pages will not be recognized if i keep permalink to post name. if I change to permalink to plan (http://www.imtftrade.com/?p=123), it works.
How do I fix this problem?
Check .htaccess file in your root directory:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
Also, go to “Settings” > “Permalinks” > “Common settings”, and set the radio button to “Custom Structure”. Use templates below that field to set up links path. Don't forget to press the Save button.
Let me know if it helped! Good luck
Related
I'm working on a Wordpress website and I was looking for having a permalink with the name of the publication of my articles. I selected on the permalink option "Name of the publication". Since this modification, I'm not able to access to the different pages / articles on my website.
I know that problem can occur when we don't have the mod_rewrite loaded. I created an info.php and I saw in the list of the Loaded Modules "mod_rewrite". I also tried to modify the htaccess file and it still not working.
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
Do you have an idea?
Thank you
Create a backup of your .htaccess (.zip it) then, delete your .htaccess. After deleting, click save permalink.
Unfortunately I deleted .htaccess page from my wordpress. Now if I click on any post or category it show page could not found. What should I do now? How can I solve it?
Any body have any idea?
I would start by creating a temporary .htaccess following the default WordPress model available at their website which looks like this:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
Then you will need to check the pages and everything to see what is still not working and fix it.
If your blog is on a different folder or configured differently the above may need to be changed depending on that.
For example folder structure, etc.
I need help with Permalink in Wordpress 3.7.1.
The website is this: http://estudiomusical.com.br/
When I set at permalink config page: /%postname%/
Pages doesn't load, 404 page appears.
I was developing this website at a windows server ... and the file web.config to fix this issue.
I have now .htaccess with this code inside:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
Can anyone help me?
I need to get the pages with the correct names to work some functions.. for example jQuery UI Tabs assigned with advanced custom fields.
Thanks!
This is my htaccess for wordpress
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
I create a category named "hotels"
I like to change my url via mod rewrite apache module.
My current url like this
http://www.mydomains.com/hotels?state=newyork&country=us
But I want url like below:
http://www.mydomains.com/hotels/us/newyork
How can i achieve this?
I tried to get url like this:
http://www.mydomains.com/hotels/newyork from http://www.mydomains.com/hotels?state=newyork
so i used this line after the rewrite rule but it was not worked.
RewriteRule ^hotels/([^/]*)$ /hotels/?state=$1 [L]
Can some one please help me?
Thanks in advance
Is there a particular reason you are trying to change permalinks via htaccess? This is more effeciantly done thru the wordpress dashboard under
Settings> Permalinks
You can choose a custom permalink structure or choose from the pre selected ones given thru wordpress.
Put this before the RewriteConds:
RewriteRule ^hotels/([^/]+)/?$ hotels?state=$1
You don't want the [L] flag because it prevents Wordpress from ever processing it.
I developed a simple wordpress site for a company.
Today they called me and said that some of the pages can't be visited.
So i checked it out , and seems like 3 menu options for apparent reason just stopped working. They said they haven't done any changes.
http://oi40.tinypic.com/ofqcev.jpg
Check the permalink it says says "projektledning" like it should be , and wordpress refuses to find the page.
http://oi40.tinypic.com/16h9mcg.jpg
And i tried for no reason to change the permalink and i've added "-1" to the link and bam its working...
What should i do to make the permalink work as the regular name it should be?
Try toggle permalink once under admin - settings - permalinks. Make sure you're server has write access to your .htaccess file before doing this.
.htaccess should look this:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
At the last row, make sure there's a space between . and /
Also check your permalinks for any typos (spaces).
IF your url is foo.bar/something, make your .htaccess look like:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /something/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /something/index.php [L]
</IfModule>
# END WordPress
Hope this helps!