Problems Setting Permalinks to /%postname%/
-
I am really sorry that I am posting this as there are TONS of posts on this but I have been fighting this issue for days and nothing has helped me fix it.
My Setup:
I am hosting my own site on Ubuntu Server, LAMP.
Wordpress Address (URL) : https://mysite.com/wordpress
Site Address (URL) : https://mysite.com/
I can get to my site with https://mysite.com/ just fine and everything works.
I don’t have any content yet.What I am trying to do:
I want the url for the sample page to be https://mysite.com/sample-page instead of https://mysite.com/?page_id=2I am pretty sure mod_rewrite is enabled and here are the contents of my /etc/apache2/sites-available/default file.
<VirtualHost *:80> ServerAdmin webmaster@localhost DocumentRoot /var/www/wordpress <Directory /> Options FollowSymLinks AllowOverride All </Directory> <Directory /var/www/> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all </Directory> ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ <Directory "/usr/lib/cgi-bin"> AllowOverride None Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch Order allow,deny Allow from all </Directory> ErrorLog ${APACHE_LOG_DIR}/error.log # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. LogLevel warn CustomLog ${APACHE_LOG_DIR}/access.log combined Alias /doc/ "/usr/share/doc/" <Directory "/usr/share/doc/"> Options Indexes MultiViews FollowSymLinks AllowOverride None Order deny,allow Deny from all Allow from 127.0.0.0/255.0.0.0 ::1/128 </Directory> </VirtualHost>
Can someone please point me in the right direction?
- The topic ‘Problems Setting Permalinks to /%postname%/’ is closed to new replies.