Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+3 votes
935 views
in Q2A Core by
edited by

Hello, I use short urls, like qa.com/404 when I share it however, now I started to use the first url option which needed .htaccess file, and I created one. this is my code, and here is the mistake when you click on the link:

tibriz.com/977

Edit: The link above works fine, but when you clik it on twitter, it dosnt work. Please see below:

https://twitter.com/tibrizesor/status/801094323404152832

Edit 2: Google webmaster tools gives me this errors as well

Everything in my .htaccess file:

Options -IndexesDirectoryIndex index.php
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} libwww-perl.*
RewriteRule .* – [F,L]
#RewriteBase /
RewriteCond %{REQUEST_URI} ^(.*)//(.*)$
RewriteRule . %1/%2 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^.*$ index.php?qa-rewrite=$0&%{QUERY_STRING} [L]
RewriteCond %{HTTPS} !=on
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteRule ^ http://%1%{REQUEST_URI} [R=301,L]
</IfModule>

<FilesMatch ".(eot|ttf|otf|woff)">
    Header set Access-Control-Allow-Origin "*"
</FilesMatch>

by
Twitter has nothing to do with this. For some reason you have changed your .htaccess. Now, what you have broken is the redirection from www. So http://www.tibriz.com/977 doesn't work while http://tibriz.com/977 does
by
so there is no other way to use it without www ?

1 Answer

0 votes
by
add cname www

youdon't have sub or CNAME WWW ONT YOUR SITE EVREY THINK FINE
...