| | #1 |
| 10minuteexpert.com War Room Member Join Date: 2004 Location: O'Fallon MO , USA.
Posts: 766
Thanks: 102
Thanked 206 Times in 124 Posts
|
I have a Wordpress site and am trying to create a friendly url for an affiliate link masker. I have a file called hoplink.php and I need to pass a value vin=xxxxx but I want to include the url like domain.com/hoplink/xxxxx I have tried the code below in the htaccess file but it seems to still be picked up by wordpress and treated as a 404. Any Help would be appreaciated. <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^hoplink/([A-Za-z0-9-]+)/?$ hoplink.php?vin=$1 [L] </IfModule> # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress John Hocking |
| | |
| |
| | #2 |
| Active Warrior Join Date: 2011 Location: Malta
Posts: 62
Thanks: 0
Thanked 9 Times in 9 Posts
|
Make sure you are editing the root .htaccess. The following is an example I have found for you. Code: Options +FollowSymLinks -MultiViews
# Turn mod_rewrite on
RewriteEngine On
RewriteBase /
RewriteCond %{THE_REQUEST} ^[A-Z]{3,}s/+download.php?id=([0-9]+)&name=([^s&]+)s [NC]
RewriteRule ^ download/%1/%2? [R=301,L]
RewriteRule ^download/([0-9]+)/([^/]+)/?$ download.php?id=$1&name=$2 [L] |
| An experienced technical programmer wants to JV with you I will build any kind of software, bots, web applications, desktop applications, mobile applications - you will handle marketing and sales. | |
| |
| | #3 |
| 10minuteexpert.com War Room Member Join Date: 2004 Location: O'Fallon MO , USA.
Posts: 766
Thanks: 102
Thanked 206 Times in 124 Posts
|
Thank You. I will give it a try. |
| | |
| |
| | #4 |
| Active Warrior Join Date: 2011 Location: Malta
Posts: 62
Thanks: 0
Thanked 9 Times in 9 Posts
|
let me know if you still have a problem. I will set up an example on my local development machine and make sure it is working like you need it
|
| An experienced technical programmer wants to JV with you I will build any kind of software, bots, web applications, desktop applications, mobile applications - you will handle marketing and sales. | |
| |
|
| Bookmarks |
| Tags |
| exclude, file, redirect, wordpress |
| |