NameSilo

Htaccess coding problems " Can you spot the problem?"

SpaceshipSpaceship
Spacemail by SpaceshipSpacemail by Spaceship
Namecheap AuctionsNamecheap Auctions
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
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
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
Close
Thank you
 
0
Close
DomainEasy: flexible LTO options. Close more domain deals with financing.

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Filters for activity feeds
Your news feed, Latest activity, and the activity tab on profiles now have filter buttons: All, Posts, Quick replies, and Other. Your...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back