...

View Full Version : Double url issue - htaccess? [wordpress]



ch4sethe5un
08-13-2010, 02:10 AM
I have wordpress installed on my site.

And i noticed that it is giving me double urls.

This is one of my site pages:
http://www.website.com/basic-gameplay/

I noticed that when i re-hover over the second link from the left it will stack the URLs like this in the bottom left of the browser display(firefox&chrome):
http://www.website.com/basic-gameplay/basic-gameplay/

The html for the navigation looks like this:

<ul id="main-navi" class="navi">
<li><a class="test" href="pollsarchive/"></a></li>
<li><a class="test" href="basic-gameplay/"></a></li>
<li><a class="test" href="#"></a></li>
<li><a class="test" href="#"></a></li>
<li><a class="test" href="#"></a></li>
<li><a class="test" href="#"></a></li>
</ul>
I dont see anything wrong.. :confused:

It works fine and directs traffic to the correct page, but its unsettling seeing that happen in the browser.

Any ideas?

my htaccess file looks like this:

IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName website.com

# BEGIN WordPress

<IfModule mod_rewrite.c>
ErrorDocument 404 /index.php?error=404
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

ch4sethe5un
08-13-2010, 02:17 AM
i also just noticed that wordpress is installed in the public_html folder is that not considered the root?

abduraooft
08-13-2010, 06:59 AM
<ul id="main-navi" class="navi">
<li><a class="test" href="pollsarchive/"></a></li>
<li><a class="test" href="basic-gameplay/"></a></li>
<li><a class="test" href="#"></a></li>
<li><a class="test" href="#"></a></li>
<li><a class="test" href="#"></a></li>
<li><a class="test" href="#"></a></li>
</ul> Use absolute paths, like

<ul id="main-navi" class="navi">
<li><a class="test" href="/pollsarchive/"></a></li>
<li><a class="test" href="/basic-gameplay/"></a></li>

</ul>

ch4sethe5un
08-13-2010, 07:07 AM
that was a very quick fix. What is the difference between what i had and absolute paths?

I mean besides the fact that it was not working correctly, why is it valid mark-up?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum