NameSilo

Htaccess coding problems " Can you spot the problem?"

Spaceship Spaceship
Watch

T D S

Established Member
Impact
9
I am having a issue with my htaccess currently if you click a link it does this

BEFORE CLICK: http://www.mywebsite.com
AFTER CLICK: http://www.mywebsite.comlinks/
It should be: http://www.mywebsite.com/links


Code:
RewriteEngine on
RewriteRule ^([^-]+).css$ $1.css [L]
RewriteRule ^([^-]+).js$ $1.js [L]
RewriteRule ^([^-]+).xml$ $1.xml [L]
RewriteRule ^([A-Z]|[a-z]|[0-9])/([^-]+)/?$ searchResult.php [L]
RewriteRule ^([A-Z]|[a-z]|[0-9])([/])$ searchResult.php [L]
RewriteRule [\/*?]([^-]+).html$ searchResult.php [L]
RewriteRule ([^-]+).html$ searchResult.php [L]
RewriteRule ^search.now$ searchResult.php [L]
RewriteRule ^search.now?q=([^-]+)$ search.php?q=$2 [L]

Any is help appreciated
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
Try:
Code:
RewriteEngine on
RewriteRule ^([^-]+).css$ /$1.css [L]
RewriteRule ^([^-]+).js$ /$1.js [L]
RewriteRule ^([^-]+).xml$ /$1.xml [L]
RewriteRule ^([A-Z]|[a-z]|[0-9])/([^-]+)/?$ /searchResult.php [L]
RewriteRule ^([A-Z]|[a-z]|[0-9])([/])$ /searchResult.php [L]
RewriteRule [\/*?]([^-]+).html$ /searchResult.php [L]
RewriteRule ([^-]+).html$ /searchResult.php [L]
RewriteRule ^search.now$ /searchResult.php [L]
RewriteRule ^search.now?q=([^-]+)$ /search.php?q=$2 [L]
 
0
•••
Thank you
 
0
•••
Appraise.net

We're social

Unstoppable Domains
Domain Recover
NameMaxi - Your Domain Has Buyers
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back